LLVM  14.0.0git
Classes | Namespaces | Macros | Typedefs
InstrTypes.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/CallingConv.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/OperandTraits.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <string>
#include <vector>
#include "llvm/IR/Instruction.def"
Include dependency graph for InstrTypes.h:

Go to the source code of this file.

Classes

class  llvm::UnaryInstruction
 
struct  llvm::OperandTraits< UnaryInstruction >
 
class  llvm::UnaryOperator
 
class  llvm::BinaryOperator
 
struct  llvm::OperandTraits< BinaryOperator >
 
class  llvm::CastInst
 This is the base class for all instructions that perform data casts. More...
 
class  llvm::CmpInst
 This class is the base class for the comparison instructions. More...
 
struct  llvm::OperandTraits< CmpInst >
 
struct  llvm::OperandBundleUse
 A lightweight accessor for an operand bundle meant to be passed around by value. More...
 
class  llvm::OperandBundleDefT< InputTy >
 A container for an operand bundle being viewed as a set of values rather than a set of uses. More...
 
class  llvm::CallBase
 Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to calling a function. More...
 
struct  llvm::CallBase::BundleOpInfo
 Used to keep track of an operand bundle. More...
 
struct  llvm::OperandTraits< CallBase >
 
class  llvm::FuncletPadInst
 
struct  llvm::OperandTraits< FuncletPadInst >
 

Namespaces

 llvm
 This file implements support for optimizing divisions by a constant.
 
 llvm::Intrinsic
 This namespace contains an enum with a value for every intrinsic/builtin function known by LLVM.
 

Macros

#define HANDLE_UNARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define HANDLE_UNARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define HANDLE_UNARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define HANDLE_BINARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define HANDLE_BINARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define HANDLE_BINARY_INST(N, OPC, CLASS)
 These methods just forward to Create, and are useful when you statically know what type of instruction you're going to create. More...
 
#define DEFINE_HELPERS(OPC, NUWNSWEXACT)
 

Typedefs

using llvm::OperandBundleDef = OperandBundleDefT< Value * >
 
using llvm::ConstOperandBundleDef = OperandBundleDefT< const Value * >
 

Macro Definition Documentation

◆ DEFINE_HELPERS

#define DEFINE_HELPERS (   OPC,
  NUWNSWEXACT 
)
Value:
static BinaryOperator *Create##NUWNSWEXACT##OPC(Value *V1, Value *V2, \
const Twine &Name = "") { \
return Create##NUWNSWEXACT(Instruction::OPC, V1, V2, Name); \
} \
static BinaryOperator *Create##NUWNSWEXACT##OPC( \
Value *V1, Value *V2, const Twine &Name, BasicBlock *BB) { \
return Create##NUWNSWEXACT(Instruction::OPC, V1, V2, Name, BB); \
} \
static BinaryOperator *Create##NUWNSWEXACT##OPC( \
Value *V1, Value *V2, const Twine &Name, Instruction *I) { \
return Create##NUWNSWEXACT(Instruction::OPC, V1, V2, Name, I); \
}

Definition at line 341 of file InstrTypes.h.

◆ HANDLE_BINARY_INST [1/3]

#define HANDLE_BINARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
const Twine &Name = "") {\
return Create(Instruction::OPC, V1, V2, Name);\
}

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 242 of file InstrTypes.h.

◆ HANDLE_BINARY_INST [2/3]

#define HANDLE_BINARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
const Twine &Name, BasicBlock *BB) {\
return Create(Instruction::OPC, V1, V2, Name, BB);\
}

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 242 of file InstrTypes.h.

◆ HANDLE_BINARY_INST [3/3]

#define HANDLE_BINARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static BinaryOperator *Create##OPC(Value *V1, Value *V2, \
const Twine &Name, Instruction *I) {\
return Create(Instruction::OPC, V1, V2, Name, I);\
}

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 242 of file InstrTypes.h.

◆ HANDLE_UNARY_INST [1/3]

#define HANDLE_UNARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static UnaryOperator *Create##OPC(Value *V, const Twine &Name = "") {\
return Create(Instruction::OPC, V, Name);\
}

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 149 of file InstrTypes.h.

◆ HANDLE_UNARY_INST [2/3]

#define HANDLE_UNARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static UnaryOperator *Create##OPC(Value *V, const Twine &Name, \
return Create(Instruction::OPC, V, Name, BB);\
}

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 149 of file InstrTypes.h.

◆ HANDLE_UNARY_INST [3/3]

#define HANDLE_UNARY_INST (   N,
  OPC,
  CLASS 
)
Value:
static UnaryOperator *Create##OPC(Value *V, const Twine &Name, \
Instruction *I) {\
return Create(Instruction::OPC, V, Name, I);\
}

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 149 of file InstrTypes.h.

I
#define I(x, y, z)
Definition: MD5.cpp:59
llvm::ISD::BasicBlock
@ BasicBlock
Various leaf nodes.
Definition: ISDOpcodes.h:71
llvm::NVPTX::PTXLdStInstCode::V2
@ V2
Definition: NVPTX.h:123
llvm::GraphProgram::Name
Name
Definition: GraphWriter.h:52
llvm::TargetStackID::Value
Value
Definition: TargetFrameLowering.h:27
BB
Common register allocation spilling lr str ldr sxth r3 ldr mla r4 can lr mov lr str ldr sxth r3 mla r4 and then merge mul and lr str ldr sxth r3 mla r4 It also increase the likelihood the store may become dead bb27 Successors according to LLVM BB
Definition: README.txt:39