LLVM 20.0.0git
Classes | Namespaces | Macros
Instruction.h File Reference
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/SandboxIR/BasicBlock.h"
#include "llvm/SandboxIR/Constant.h"
#include "llvm/SandboxIR/User.h"
#include "llvm/SandboxIR/Values.def"

Go to the source code of this file.

Classes

class  llvm::sandboxir::InsertPosition
 
class  llvm::sandboxir::Instruction
 A sandboxir::User with operands, opcode and linked with previous/next instructions in an instruction list. More...
 
class  llvm::sandboxir::SingleLLVMInstructionImpl< LLVMT >
 Instructions that contain a single LLVM Instruction can inherit from this. More...
 
class  llvm::sandboxir::FenceInst
 
class  llvm::sandboxir::SelectInst
 
class  llvm::sandboxir::InsertElementInst
 
class  llvm::sandboxir::ExtractElementInst
 
class  llvm::sandboxir::ShuffleVectorInst
 
class  llvm::sandboxir::InsertValueInst
 
class  llvm::sandboxir::BranchInst
 
class  llvm::sandboxir::UnaryInstruction
 An abstract class, parent of unary instructions. More...
 
class  llvm::sandboxir::ExtractValueInst
 
class  llvm::sandboxir::VAArgInst
 
class  llvm::sandboxir::FreezeInst
 
class  llvm::sandboxir::LoadInst
 
class  llvm::sandboxir::StoreInst
 
class  llvm::sandboxir::UnreachableInst
 
class  llvm::sandboxir::ReturnInst
 
class  llvm::sandboxir::CallBase
 
class  llvm::sandboxir::CallInst
 
class  llvm::sandboxir::InvokeInst
 
class  llvm::sandboxir::CallBrInst
 
class  llvm::sandboxir::LandingPadInst
 
class  llvm::sandboxir::FuncletPadInst
 
class  llvm::sandboxir::CatchPadInst
 
class  llvm::sandboxir::CleanupPadInst
 
class  llvm::sandboxir::CatchReturnInst
 
class  llvm::sandboxir::CleanupReturnInst
 
class  llvm::sandboxir::GetElementPtrInst
 
class  llvm::sandboxir::CatchSwitchInst
 
class  llvm::sandboxir::ResumeInst
 
class  llvm::sandboxir::SwitchInst
 
class  llvm::sandboxir::UnaryOperator
 
class  llvm::sandboxir::BinaryOperator
 
class  llvm::sandboxir::PossiblyDisjointInst
 An or instruction, which can be marked as "disjoint", indicating that the inputs don't have a 1 in the same bit position. More...
 
class  llvm::sandboxir::AtomicRMWInst
 
class  llvm::sandboxir::AtomicCmpXchgInst
 
class  llvm::sandboxir::AllocaInst
 
class  llvm::sandboxir::CastInst
 
class  llvm::sandboxir::PossiblyNonNegInst
 Instruction that can have a nneg flag (zext/uitofp). More...
 
class  llvm::sandboxir::CastInstImpl< Op >
 
class  llvm::sandboxir::TruncInst
 
class  llvm::sandboxir::ZExtInst
 
class  llvm::sandboxir::SExtInst
 
class  llvm::sandboxir::FPTruncInst
 
class  llvm::sandboxir::FPExtInst
 
class  llvm::sandboxir::UIToFPInst
 
class  llvm::sandboxir::SIToFPInst
 
class  llvm::sandboxir::FPToUIInst
 
class  llvm::sandboxir::FPToSIInst
 
class  llvm::sandboxir::IntToPtrInst
 
class  llvm::sandboxir::PtrToIntInst
 
class  llvm::sandboxir::BitCastInst
 
class  llvm::sandboxir::AddrSpaceCastInst
 
class  llvm::sandboxir::PHINode
 
class  llvm::sandboxir::CmpInst
 
class  llvm::sandboxir::ICmpInst
 
class  llvm::sandboxir::FCmpInst
 
class  llvm::sandboxir::OpaqueInst
 An LLLVM Instruction that has no SandboxIR equivalent class gets mapped to an OpaqueInstr. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::sandboxir
 

Macros

#define OP(OPC)   OPC,
 
#define OPCODES(...)   __VA_ARGS__
 
#define DEF_INSTR(ID, OPC, CLASS)   OPC
 
#define DEF_INSTR(ID, OPC, CLASS)   friend class CLASS;
 
#define WRAP_STATIC_PREDICATE(FunctionName)    static auto FunctionName(Predicate P) { return LLVMValType::FunctionName(P); }
 
#define WRAP_MEMBER(FunctionName)    auto FunctionName() const { return cast<LLVMValType>(Val)->FunctionName(); }
 
#define WRAP_BOTH(FunctionName)
 

Macro Definition Documentation

◆ DEF_INSTR [1/2]

#define DEF_INSTR (   ID,
  OPC,
  CLASS 
)    OPC

Definition at line 383 of file Instruction.h.

◆ DEF_INSTR [2/2]

#define DEF_INSTR (   ID,
  OPC,
  CLASS 
)    friend class CLASS;

Definition at line 383 of file Instruction.h.

◆ OP

#define OP (   OPC)    OPC,

Definition at line 45 of file Instruction.h.

◆ OPCODES

#define OPCODES (   ...)    __VA_ARGS__

Definition at line 46 of file Instruction.h.

◆ WRAP_BOTH

#define WRAP_BOTH (   FunctionName)
Value:
WRAP_STATIC_PREDICATE(FunctionName) \
WRAP_MEMBER(FunctionName)
#define WRAP_STATIC_PREDICATE(FunctionName)
Definition: Instruction.h:2456

Definition at line 2463 of file Instruction.h.

◆ WRAP_MEMBER

#define WRAP_MEMBER (   FunctionName)     auto FunctionName() const { return cast<LLVMValType>(Val)->FunctionName(); }

Definition at line 2460 of file Instruction.h.

◆ WRAP_STATIC_PREDICATE

#define WRAP_STATIC_PREDICATE (   FunctionName)     static auto FunctionName(Predicate P) { return LLVMValType::FunctionName(P); }

Definition at line 2456 of file Instruction.h.