LLVM 22.0.0git
Instruction.cpp File Reference
#include "llvm/IR/Instruction.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.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/LLVMContext.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/Support/CommandLine.h"
#include "llvm/Support/Compiler.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(...)
#define DEF_INSTR(ID, OPC, CLASS)
#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< boolProfcheckDisableMetadataFixes ("profcheck-disable-metadata-fixes", cl::Hidden, cl::init(false), cl::desc("Disable metadata propagation fixes discovered through Issue #147390"))

Macro Definition Documentation

◆ DEF_INSTR [1/2]

#define DEF_INSTR ( ID,
OPC,
CLASS )
Value:
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;
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:565

◆ 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 ( ...)
Value:
__VA_ARGS__

Function Documentation

◆ canUnwindPastLandingPad()

Variable Documentation

◆ ProfcheckDisableMetadataFixes

cl::opt< bool > ProfcheckDisableMetadataFixes("profcheck-disable-metadata-fixes", cl::Hidden, cl::init(false), cl::desc( "Disable metadata propagation fixes discovered through Issue #147390")) ( "profcheck-disable-metadata-fixes" ,
cl::Hidden ,
cl::init(false) ,
cl::desc( "Disable metadata propagation fixes discovered through Issue #147390")  )