LLVM 20.0.0git
Macros | Functions
SandboxIR.cpp File Reference
#include "llvm/SandboxIR/SandboxIR.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/Constants.h"
#include "llvm/Support/Debug.h"
#include <sstream>
#include "llvm/SandboxIR/SandboxIRValues.def"

Go to the source code of this file.

Macros

#define DEF_VALUE(ID, CLASS)
 
#define DEF_USER(ID, CLASS)
 
#define DEF_INSTR(ID, OPC, CLASS)
 
#define OP(OPC)
 
#define OPCODES(...)   __VA_ARGS__
 
#define DEF_INSTR(ID, OPC, CLASS)   OPC
 
#define DEF_INSTR(ID, OPC, CLASS)
 

Functions

static llvm::Instruction::CastOps getLLVMCastOp (Instruction::Opcode Opc)
 

Macro Definition Documentation

◆ DEF_INSTR [1/3]

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

◆ DEF_INSTR [2/3]

#define DEF_INSTR (   ID,
  OPC,
  CLASS 
)    OPC

◆ DEF_INSTR [3/3]

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

◆ DEF_USER

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

◆ DEF_VALUE

#define DEF_VALUE (   ID,
  CLASS 
)

◆ OP

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

◆ OPCODES

#define OPCODES (   ...)    __VA_ARGS__

Function Documentation

◆ getLLVMCastOp()

static llvm::Instruction::CastOps getLLVMCastOp ( Instruction::Opcode  Opc)
static

Definition at line 1188 of file SandboxIR.cpp.

References llvm_unreachable.

Referenced by llvm::sandboxir::CastInst::create().