Home | History | Annotate | Download | only in docs

Lines Matching full:instruction

12 function, or a whole new instruction.
24 instruction, and is transparent to optimization passes. If your added
39 instruction. Almost all extensions to LLVM should start as an intrinsic
40 function and then be turned into an instruction if warranted.
80 adding a new instruction. New nodes are often added to help represent
82 instruction (add, sub) or intrinsic (byteswap, population count). In other
153 match an instruction to your new node, you must add a def for that node to
159 Each target has a tablegen file that describes the target's instruction set.
160 For targets that use the DAGToDAG instruction selection framework, add a
172 Adding a new instruction
178 to maintain compatibility with the previous version. Only add an instruction
181 #. ``llvm/include/llvm/IR/Instruction.def``:
183 add a number for your instruction and an enum name
187 add a definition for the class that will represent your instruction
191 add a prototype for a visitor to your new instruction type
195 add a new token to parse your instruction from assembly text file
199 add the grammar on how your instruction can be read and what it will
204 add a case for your instruction and how it will be parsed from bitcode
208 add a case for your instruction and how it will be parsed from bitcode
210 #. ``llvm/lib/IR/Instruction.cpp``:
212 add a case for how your instruction will be printed out to assembly
218 #. Test your instruction
222 add support for your instruction to code generators, or add a lowering pass.
229 understand this new instruction.