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)
 
static llvm::Instruction::UnaryOps getLLVMUnaryOp (Instruction::Opcode Opc)
 \Returns the LLVM opcode that corresponds to Opc.
 
static llvm::Instruction::BinaryOps getLLVMBinaryOp (Instruction::Opcode Opc)
 \Returns the LLVM opcode that corresponds to 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

◆ getLLVMBinaryOp()

static llvm::Instruction::BinaryOps getLLVMBinaryOp ( Instruction::Opcode  Opc)
static

\Returns the LLVM opcode that corresponds to Opc.

Definition at line 1569 of file SandboxIR.cpp.

References llvm_unreachable.

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

◆ getLLVMCastOp()

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

Definition at line 1346 of file SandboxIR.cpp.

References llvm_unreachable.

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

◆ getLLVMUnaryOp()

static llvm::Instruction::UnaryOps getLLVMUnaryOp ( Instruction::Opcode  Opc)
static

\Returns the LLVM opcode that corresponds to Opc.

Definition at line 1381 of file SandboxIR.cpp.

References llvm_unreachable.

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