LLVM: lib/SandboxIR/Instruction.cpp File Reference (original) (raw)
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. |
◆ DEF_INSTR [1/2]
| #define DEF_INSTR | ( | ID, |
|---|---|---|
| OPC, | ||
| CLASS ) |
◆ 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: \
break;
decltype(auto) cast(const From &Val)
cast - Return the argument parameter cast to the specified type.
◆ 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
Value:
case Opcode::OPC: \
return #OPC;