LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

InstVisitor.h File Reference

#include "llvm/Function.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 >

Defines

#define HANDLE_INST(NUM, OPCODE, CLASS)   class CLASS;
#define DELEGATE(CLASS_TO_VISIT)   return ((SubClass*)this)->visit##CLASS_TO_VISIT((CLASS_TO_VISIT&)I)
#define HANDLE_INST(NUM, OPCODE, CLASS)   case Instruction::OPCODE:return ((SubClass*)this)->visit##OPCODE((CLASS&)I);
#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(32
AllocaInst PHINode CallInst
VANextInst 
llvm::HANDLE_OTHER_INST (33, VAArg, VAArgInst) HANDLE_OTHER_INST(34
AllocaInst PHINode CallInst
VANextInst SelectInst 
llvm::HANDLE_OTHER_INST (35, UserOp1, Instruction) 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::VANext
AllocaInst PHINode CallInst
VANextInst 
llvm::Select


Define Documentation

#define DELEGATE CLASS_TO_VISIT   )     return ((SubClass*)this)->visit##CLASS_TO_VISIT((CLASS_TO_VISIT&)I)
 

Definition at line 224 of file InstVisitor.h.

#define HANDLE_INST NUM,
OPCODE,
CLASS   )     RetTy visit##OPCODE(CLASS &I) { DELEGATE(CLASS); }
 

Definition at line 460 of file InstVisitor.h.

#define HANDLE_INST NUM,
OPCODE,
CLASS   )     case Instruction::OPCODE:return ((SubClass*)this)->visit##OPCODE((CLASS&)I);
 

Definition at line 460 of file InstVisitor.h.

#define HANDLE_INST NUM,
OPCODE,
CLASS   )     class CLASS;
 

Definition at line 460 of file InstVisitor.h.