LLVM API Documentation
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Instruction.def"
Include dependency graph for InstVisitor.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | llvm |
Classes | |
class | llvm::InstVisitor< SubClass, RetTy > |
Base class for instruction visitors. More... | |
Defines | |
#define | HANDLE_INST(NUM, OPCODE, CLASS) class CLASS; |
#define | DELEGATE(CLASS_TO_VISIT) |
#define | HANDLE_INST(NUM, OPCODE, CLASS) |
#define | HANDLE_INST(NUM, OPCODE, CLASS) RetTy visit##OPCODE(CLASS &I) { DELEGATE(CLASS); } |
Functions | |
llvm::HANDLE_MEMORY_INST (21, Malloc, MallocInst) HANDLE_MEMORY_INST(23 | |
AllocaInst PHINode | llvm::HANDLE_OTHER_INST (28, Cast, CastInst) HANDLE_OTHER_INST(29 |
AllocaInst PHINode CallInst | llvm::HANDLE_OTHER_INST (30, Shl, ShiftInst) HANDLE_OTHER_INST(34 |
AllocaInst PHINode CallInst SelectInst | llvm::HANDLE_OTHER_INST (35, UserOp1, Instruction) HANDLE_OTHER_INST(37 |
AllocaInst PHINode CallInst SelectInst VAArgInst | llvm::HANDLE_OTHER_INST (38, ExtractElement, ExtractElementInst) HANDLE_OTHER_INST(39 |
AllocaInst PHINode CallInst SelectInst VAArgInst InsertElementInst | llvm::HANDLE_OTHER_INST (40, ShuffleVector, ShuffleVectorInst) class TerminatorInst |
Variables | |
llvm::Alloca | |
AllocaInst | llvm::HANDLE_MEMORY_INST (24, Load, LoadInst) HANDLE_OTHER_INST(27 |
AllocaInst | llvm::PHI |
AllocaInst PHINode | llvm::Call |
AllocaInst PHINode CallInst | llvm::Select |
AllocaInst PHINode CallInst SelectInst | llvm::VAArg |
AllocaInst PHINode CallInst SelectInst VAArgInst | llvm::InsertElement |
#define DELEGATE | ( | CLASS_TO_VISIT | ) |
Value:
return static_cast<SubClass*>(this)-> \ visit##CLASS_TO_VISIT(static_cast<CLASS_TO_VISIT&>(I))
Definition at line 190 of file InstVisitor.h.
#define HANDLE_INST | ( | NUM, | |||
OPCODE, | |||||
CLASS | ) | RetTy visit##OPCODE(CLASS &I) { DELEGATE(CLASS); } |
Definition at line 478 of file InstVisitor.h.
#define HANDLE_INST | ( | NUM, | |||
OPCODE, | |||||
CLASS | ) |
Value:
case Instruction::OPCODE: return \ static_cast<SubClass*>(this)-> \ visit##OPCODE(static_cast<CLASS&>(I));
Definition at line 478 of file InstVisitor.h.
#define HANDLE_INST | ( | NUM, | |||
OPCODE, | |||||
CLASS | ) | class CLASS; |
Definition at line 478 of file InstVisitor.h.