LLVM API Documentation

InstrTypes.h File Reference

#include "llvm/Instruction.h"
#include "llvm/OperandTraits.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Instruction.def"

Include dependency graph for InstrTypes.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::TerminatorInst
class  llvm::UnaryInstruction
struct  llvm::OperandTraits< UnaryInstruction >
class  llvm::BinaryOperator
struct  llvm::OperandTraits< BinaryOperator >
class  llvm::CastInst
 Base class of casting instructions. More...
class  llvm::CmpInst
 Abstract base class of comparison instructions. More...
struct  llvm::OperandTraits< CmpInst >

Defines

#define HANDLE_BINARY_INST(N, OPC, CLASS)
#define HANDLE_BINARY_INST(N, OPC, CLASS)
#define HANDLE_BINARY_INST(N, OPC, CLASS)


Define Documentation

#define HANDLE_BINARY_INST ( N,
OPC,
CLASS   ) 

Value:

static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
                                     const std::string &Name, Instruction *I) {\
    return Create(Instruction::OPC, V1, V2, Name, I);\
  }
Create* - These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. These helpers just save some typing.

Definition at line 578 of file InstrTypes.h.

#define HANDLE_BINARY_INST ( N,
OPC,
CLASS   ) 

Value:

static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
                                     const std::string &Name, BasicBlock *BB) {\
    return Create(Instruction::OPC, V1, V2, Name, BB);\
  }
Create* - These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. These helpers just save some typing.

Definition at line 578 of file InstrTypes.h.

#define HANDLE_BINARY_INST ( N,
OPC,
CLASS   ) 

Value:

static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
                                     const std::string &Name = "") {\
    return Create(Instruction::OPC, V1, V2, Name);\
  }
Create* - These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. These helpers just save some typing.

Definition at line 578 of file InstrTypes.h.