From 1763525fa9d464b286423353c1922e12c897abef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Sep 2002 17:18:46 +0000 Subject: [PATCH] Add some information about the Instruction class and Instruction.def git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3690 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 3caeaa4f5fb..c81f89c39de 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -901,6 +901,17 @@ way as for other Users (with the getOperand()/getNumOperands() and op_begin()/op_end() methods).

+An important file for the Instruction class is the +llvm/Instruction.def file. This file contains some meta-data about the +various different types of instructions in LLVM. It describes the enum values +that are used as opcodes (for example Instruction::Add and +Instruction::SetLE), as well as the concrete sub-classes of +Instruction that implement the instruction (for example BinaryOperator and SetCondInst). Unfortunately, the use of macros in +this file confused doxygen, so these enum values don't show up correctly in the +doxygen output.

+


Important Public Members of @@ -920,6 +931,14 @@ Returns true if the instruction has side effects, i.e. it is a call, Returns the opcode for the Instruction.

+

  • Instruction *clone() const

    + +Returns another instance of the specified instruction, identical in all ways to +the original except that the instruction has no parent (ie it's not embedded +into a BasicBlock), and it has no name.

    + + + -Last modified: Wed Sep 11 17:31:03 CDT 2002 +Last modified: Thu Sep 12 12:18:04 CDT 2002 -- 2.34.1