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
If it is possible to constant fold your intrinsic, add support to it in the
``canConstantFoldCallTo`` and ``ConstantFoldCall`` functions.
-#. ``llvm/test/Regression/*``:
+#. ``llvm/test/*``:
Add test cases for your test cases to the test suite
#. TODO: document complex patterns.
-#. ``llvm/test/Regression/CodeGen/*``:
+#. ``llvm/test/CodeGen/*``:
Add test cases for your new node to the test suite.
- ``llvm/test/Regression/CodeGen/X86/bswap.ll`` is a good example.
+ ``llvm/test/CodeGen/X86/bswap.ll`` is a good example.
Adding a new instruction
========================
add support for your instruction to code generators, or add a lowering pass.
-#. ``llvm/test/Regression/*``:
+#. ``llvm/test/*``:
add your test cases to the test suite.
add ability to parse in the type from text assembly
-#. ``llvm/lib/BitCode/Writer/Writer.cpp``:
+#. ``llvm/lib/Bitcode/Writer/Writer.cpp``:
modify ``void BitcodeWriter::outputType(const Type *T)`` to serialize your
type
-#. ``llvm/lib/BitCode/Reader/Reader.cpp``:
+#. ``llvm/lib/Bitcode/Reader/Reader.cpp``:
modify ``const Type *BitcodeReader::ParseType()`` to read your data type