LLVM 19.0.0git
|
#include "Target/DirectX/DXILOpBuilder.h"
Public Member Functions | |
DXILOpBuilder (Module &M, IRBuilderBase &B) | |
CallInst * | createDXILOpCall (dxil::OpCode OpCode, Type *ReturnTy, Type *OverloadTy, SmallVector< Value * > Args) |
Create an instruction that calls DXIL Op with return type, specified opcode, and call arguments. | |
Type * | getOverloadTy (dxil::OpCode OpCode, FunctionType *FT) |
Static Public Member Functions | |
static const char * | getOpCodeName (dxil::OpCode DXILOp) |
Definition at line 29 of file DXILOpBuilder.h.
|
inline |
Definition at line 31 of file DXILOpBuilder.h.
CallInst * llvm::dxil::DXILOpBuilder::createDXILOpCall | ( | dxil::OpCode | OpCode, |
Type * | ReturnTy, | ||
Type * | OverloadTy, | ||
SmallVector< Value * > | Args | ||
) |
Create an instruction that calls DXIL Op with return type, specified opcode, and call arguments.
OpCode | Opcode of the DXIL Op call constructed |
ReturnTy | Return type of the DXIL Op call constructed |
OverloadTy | Overload type of the DXIL Op call constructed |
Definition at line 255 of file DXILOpBuilder.cpp.
References constructOverloadName(), llvm::IRBuilderBase::CreateCall(), getDXILOpFunctionType(), llvm::Module::getFunction(), llvm::Module::getOrInsertFunction(), getOverloadKind(), OpCodeProperty::OverloadTys, and llvm::report_fatal_error().
Referenced by lowerIntrinsic().
Definition at line 329 of file DXILOpBuilder.cpp.
Type * llvm::dxil::DXILOpBuilder::getOverloadTy | ( | dxil::OpCode | OpCode, |
FunctionType * | FT | ||
) |
Definition at line 279 of file DXILOpBuilder.cpp.
References llvm::dxil::CBufferRet, llvm::Type::getContext(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Type::getHalfTy(), llvm::Type::getInt16Ty(), llvm::Type::getInt1Ty(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::FunctionType::getParamType(), llvm::FunctionType::getReturnType(), llvm::Type::getVoidTy(), llvm_unreachable, OpCodeProperty::OverloadParamIndex, OpCodeProperty::OverloadTys, and llvm::dxil::ResourceRet.
Referenced by lowerIntrinsic().