LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::dxil::DXILOpBuilder Class Reference

#include "Target/DirectX/DXILOpBuilder.h"

Public Member Functions

 DXILOpBuilder (Module &M, IRBuilderBase &B)
 
CallInstcreateDXILOpCall (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.
 
TypegetOverloadTy (dxil::OpCode OpCode, FunctionType *FT)
 

Static Public Member Functions

static const chargetOpCodeName (dxil::OpCode DXILOp)
 

Detailed Description

Definition at line 29 of file DXILOpBuilder.h.

Constructor & Destructor Documentation

◆ DXILOpBuilder()

llvm::dxil::DXILOpBuilder::DXILOpBuilder ( Module M,
IRBuilderBase B 
)
inline

Definition at line 31 of file DXILOpBuilder.h.

Member Function Documentation

◆ createDXILOpCall()

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.

Parameters
OpCodeOpcode of the DXIL Op call constructed
ReturnTyReturn type of the DXIL Op call constructed
OverloadTyOverload type of the DXIL Op call constructed
Returns
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().

◆ getOpCodeName()

const char * llvm::dxil::DXILOpBuilder::getOpCodeName ( dxil::OpCode  DXILOp)
static

Definition at line 329 of file DXILOpBuilder.cpp.

◆ getOverloadTy()

Type * llvm::dxil::DXILOpBuilder::getOverloadTy ( dxil::OpCode  OpCode,
FunctionType FT 
)

The documentation for this class was generated from the following files: