LLVM 20.0.0git
Namespaces | Macros | Functions | Variables
Instruction.cpp File Reference
#include "llvm/IR/Instruction.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/IR/AttributeMask.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/MemoryModelRelaxationAnnotations.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/ProfDataUtils.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Instruction.def"
#include "llvm/SandboxIR/Instruction.h"
#include "llvm/SandboxIR/Function.h"
#include "llvm/SandboxIR/Values.def"

Go to the source code of this file.

Namespaces

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

Macros

#define HANDLE_TERM_INST(N, OPC, CLASS)
 
#define HANDLE_TERM_INST(N, OPC, CLASS)
 
#define HANDLE_TERM_INST(N, OPC, CLASS)
 
#define HANDLE_INST(num, opc, clas)
 
#define OP(OPC)
 
#define OPCODES(...)   __VA_ARGS__
 
#define DEF_INSTR(ID, OPC, CLASS)   OPC
 
#define DEF_INSTR(ID, OPC, CLASS)
 

Functions

static bool canUnwindPastLandingPad (const LandingPadInst *LP, bool IncludePhaseOneUnwind)
 
static llvm::Instruction::CastOps llvm::sandboxir::getLLVMCastOp (Instruction::Opcode Opc)
 
static llvm::Instruction::UnaryOps llvm::sandboxir::getLLVMUnaryOp (Instruction::Opcode Opc)
 \Returns the LLVM opcode that corresponds to Opc.
 
static llvm::Instruction::BinaryOps llvm::sandboxir::getLLVMBinaryOp (Instruction::Opcode Opc)
 \Returns the LLVM opcode that corresponds to Opc.
 

Variables

cl::opt< boolUseNewDbgInfoFormat
 

Macro Definition Documentation

◆ DEF_INSTR [1/2]

#define DEF_INSTR (   ID,
  OPC,
  CLASS 
)    OPC

◆ DEF_INSTR [2/2]

#define DEF_INSTR (   ID,
  OPC,
  CLASS 
)
Value:
case ClassID::ID: \
return true;

◆ HANDLE_INST

#define HANDLE_INST (   num,
  opc,
  clas 
)
Value:
case Instruction::opc: \
New = cast<clas>(this)->cloneImpl(); \
break;

◆ HANDLE_TERM_INST [1/3]

#define HANDLE_TERM_INST (   N,
  OPC,
  CLASS 
)
Value:
case Instruction::OPC: \
return static_cast<const CLASS *>(this)->getNumSuccessors();

◆ HANDLE_TERM_INST [2/3]

#define HANDLE_TERM_INST (   N,
  OPC,
  CLASS 
)
Value:
case Instruction::OPC: \
return static_cast<const CLASS *>(this)->getSuccessor(idx);

◆ HANDLE_TERM_INST [3/3]

#define HANDLE_TERM_INST (   N,
  OPC,
  CLASS 
)
Value:
case Instruction::OPC: \
return static_cast<CLASS *>(this)->setSuccessor(idx, B);
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")

◆ OP

#define OP (   OPC)
Value:
case Opcode::OPC: \
return #OPC;

◆ OPCODES

#define OPCODES (   ...)    __VA_ARGS__

Function Documentation

◆ canUnwindPastLandingPad()

static bool canUnwindPastLandingPad ( const LandingPadInst LP,
bool  IncludePhaseOneUnwind 
)
static

Definition at line 1099 of file Instruction.cpp.

Variable Documentation

◆ UseNewDbgInfoFormat

cl::opt<bool> UseNewDbgInfoFormat
extern