LLVM  14.0.0git
Classes | Namespaces | Macros
InstVisitor.h File Reference
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/IR/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.

Classes

class  llvm::InstVisitor< SubClass, RetTy >
 Base class for instruction visitors. More...
 

Namespaces

 llvm
 ---------------------— PointerInfo ------------------------------------—
 

Macros

#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)
 

Macro Definition Documentation

◆ DELEGATE

#define DELEGATE (   CLASS_TO_VISIT)
Value:
return static_cast<SubClass*>(this)-> \
visit##CLASS_TO_VISIT(static_cast<CLASS_TO_VISIT&>(I))

Definition at line 28 of file InstVisitor.h.

◆ HANDLE_INST [1/3]

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

Definition at line 155 of file InstVisitor.h.

◆ HANDLE_INST [2/3]

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

Definition at line 155 of file InstVisitor.h.

◆ HANDLE_INST [3/3]

#define HANDLE_INST (   NUM,
  OPCODE,
  CLASS 
)
Value:
RetTy visit##OPCODE(CLASS &I) { \
return delegateCallInst(I); \
DELEGATE(CLASS); \
}

Definition at line 155 of file InstVisitor.h.

llvm::NVPTX::PTXCmpMode::NUM
@ NUM
Definition: NVPTX.h:166
llvm::MCID::Call
@ Call
Definition: MCInstrDesc.h:153
I
#define I(x, y, z)
Definition: MD5.cpp:59
OPCODE
#define OPCODE(NAME)
DELEGATE
#define DELEGATE(CLASS_TO_VISIT)
Definition: InstVisitor.h:28