clang  19.0.0git
Namespaces | Macros | Functions
SPIR.cpp File Reference
#include "ABIInfoImpl.h"
#include "TargetInfo.h"
#include "clang/Basic/OpenCLImageTypes.def"
#include "clang/Basic/OpenCLExtensionTypes.def"

Go to the source code of this file.

Namespaces

 clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
 clang::CodeGen
 

Macros

#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix)
 
#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix)
 
#define IMAGE_WRITE_TYPE(Type, Id, Ext)
 
#define IMAGE_READ_WRITE_TYPE(Type, Id, Ext)
 
#define INTEL_SUBGROUP_AVC_TYPE(Name, Id)
 

Functions

void clang::CodeGen::computeSPIRKernelABIInfo (CodeGenModule &CGM, CGFunctionInfo &FI)
 
static llvm::Type * getSPIRVImageType (llvm::LLVMContext &Ctx, StringRef BaseType, StringRef OpenCLName, unsigned AccessQualifier)
 Construct a SPIR-V target extension type for the given OpenCL image type. More...
 

Macro Definition Documentation

◆ IMAGE_READ_WRITE_TYPE

#define IMAGE_READ_WRITE_TYPE (   Type,
  Id,
  Ext 
)

◆ IMAGE_TYPE [1/2]

#define IMAGE_TYPE (   ImgType,
  Id,
  SingletonId,
  Access,
  Suffix 
)
Value:
return getSPIRVImageType(Ctx, "spirv.Image", #ImgType, AQ_##Suffix);
int Id
Definition: ASTDiff.cpp:190
static llvm::Type * getSPIRVImageType(llvm::LLVMContext &Ctx, StringRef BaseType, StringRef OpenCLName, unsigned AccessQualifier)
Construct a SPIR-V target extension type for the given OpenCL image type.
Definition: SPIR.cpp:275

◆ IMAGE_TYPE [2/2]

#define IMAGE_TYPE (   ImgType,
  Id,
  SingletonId,
  Access,
  Suffix 
)
Value:
case BuiltinType::Sampled##Id: \
return getSPIRVImageType(Ctx, "spirv.SampledImage", #ImgType, AQ_##Suffix);

◆ IMAGE_WRITE_TYPE

#define IMAGE_WRITE_TYPE (   Type,
  Id,
  Ext 
)

◆ INTEL_SUBGROUP_AVC_TYPE

#define INTEL_SUBGROUP_AVC_TYPE (   Name,
  Id 
)
Value:
case BuiltinType::OCLIntelSubgroupAVC##Id: \
return llvm::TargetExtType::get(Ctx, "spirv.Avc" #Id "INTEL");

Function Documentation

◆ getSPIRVImageType()

static llvm::Type* getSPIRVImageType ( llvm::LLVMContext &  Ctx,
StringRef  BaseType,
StringRef  OpenCLName,
unsigned  AccessQualifier 
)
static

Construct a SPIR-V target extension type for the given OpenCL image type.

Definition at line 275 of file SPIR.cpp.