-.. _extending_llvm:
-
============================================================
Extending LLVM: Adding instructions, intrinsics, types, etc.
============================================================
what the restrictions are. Talk to other people about it so that you are
sure it's a good idea.
-#. ``llvm/include/llvm/Intrinsics*.td``:
+#. ``llvm/include/llvm/IR/Intrinsics*.td``:
Add an entry for your intrinsic. Describe its memory access characteristics
for optimization (this controls whether it will be DCE'd, CSE'd, etc). Note
add support for derived type to:
- .. code:: c++
+ .. code-block:: c++
std::string getTypeDescription(const Type &Ty,
std::vector<const Type*> &TypeStack)
modify
- .. code:: c++
+ .. code-block:: c++
void calcTypeName(const Type *Ty,
std::vector<const Type*> &TypeStack,