LLVM 20.0.0git
Functions
SPIRVCallLowering.cpp File Reference
#include "SPIRVCallLowering.h"
#include "MCTargetDesc/SPIRVBaseInfo.h"
#include "SPIRV.h"
#include "SPIRVBuiltins.h"
#include "SPIRVGlobalRegistry.h"
#include "SPIRVISelLowering.h"
#include "SPIRVMetadata.h"
#include "SPIRVRegisterInfo.h"
#include "SPIRVSubtarget.h"
#include "SPIRVUtils.h"
#include "llvm/CodeGen/FunctionLoweringInfo.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/IntrinsicsSPIRV.h"
#include "llvm/Support/ModRef.h"

Go to the source code of this file.

Functions

static uint32_t getFunctionControl (const Function &F, const SPIRVSubtarget *ST)
 
static ConstantIntgetConstInt (MDNode *MD, unsigned NumOp)
 
static FunctionTypefixFunctionTypeIfPtrArgs (SPIRVGlobalRegistry *GR, const Function &F, FunctionType *FTy, const SPIRVType *SRetTy, const SmallVector< SPIRVType *, 4 > &SArgTys)
 
static FunctionTypegetOriginalFunctionType (const Function &F)
 
static SPIRV::AccessQualifier::AccessQualifier getArgAccessQual (const Function &F, unsigned ArgIdx)
 
static std::vector< SPIRV::Decoration::Decoration > getKernelArgTypeQual (const Function &F, unsigned ArgIdx)
 
static SPIRVTypegetArgSPIRVType (const Function &F, unsigned ArgIdx, SPIRVGlobalRegistry *GR, MachineIRBuilder &MIRBuilder, const SPIRVSubtarget &ST)
 
static SPIRV::ExecutionModel::ExecutionModel getExecutionModel (const SPIRVSubtarget &STI, const Function &F)
 

Function Documentation

◆ fixFunctionTypeIfPtrArgs()

static FunctionType * fixFunctionTypeIfPtrArgs ( SPIRVGlobalRegistry GR,
const Function F,
FunctionType FTy,
const SPIRVType SRetTy,
const SmallVector< SPIRVType *, 4 > &  SArgTys 
)
static

◆ getArgAccessQual()

static SPIRV::AccessQualifier::AccessQualifier getArgAccessQual ( const Function F,
unsigned  ArgIdx 
)
static

◆ getArgSPIRVType()

static SPIRVType * getArgSPIRVType ( const Function F,
unsigned  ArgIdx,
SPIRVGlobalRegistry GR,
MachineIRBuilder MIRBuilder,
const SPIRVSubtarget ST 
)
static

◆ getConstInt()

static ConstantInt * getConstInt ( MDNode MD,
unsigned  NumOp 
)
static

◆ getExecutionModel()

static SPIRV::ExecutionModel::ExecutionModel getExecutionModel ( const SPIRVSubtarget STI,
const Function F 
)
static

◆ getFunctionControl()

static uint32_t getFunctionControl ( const Function F,
const SPIRVSubtarget ST 
)
static

◆ getKernelArgTypeQual()

static std::vector< SPIRV::Decoration::Decoration > getKernelArgTypeQual ( const Function F,
unsigned  ArgIdx 
)
static

◆ getOriginalFunctionType()

static FunctionType * getOriginalFunctionType ( const Function F)
static