clang: lib/CodeGen/TargetBuiltins/AMDGPU.cpp File Reference (original) (raw)

#include "[CGBuiltin.h](CGBuiltin%5F8h%5Fsource.html)"
#include "[CodeGenFunction.h](CodeGenFunction%5F8h%5Fsource.html)"
#include "[clang/Basic/DiagnosticFrontend.h](DiagnosticFrontend%5F8h%5Fsource.html)"
#include "[clang/Basic/SyncScope.h](SyncScope%5F8h%5Fsource.html)"
#include "[clang/Basic/TargetBuiltins.h](TargetBuiltins%5F8h%5Fsource.html)"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/IR/IntrinsicsR600.h"
#include "llvm/IR/MemoryModelRelaxationAnnotations.h"
#include "llvm/Support/AMDGPUAddrSpace.h"

Go to the source code of this file.

Functions
static Value * EmitAMDGCNBallotForExec (CodeGenFunction &CGF, const CallExpr *E, llvm::Type *RegisterType, llvm::Type *ValueType, bool isExecHi)
static llvm::Value * loadTextureDescPtorAsVec8I32 (CodeGenFunction &CGF, llvm::Value *RsrcPtr)
llvm::CallInst * emitAMDGCNImageOverloadedReturnType (clang::CodeGen::CodeGenFunction &CGF, const clang::CallExpr *E, unsigned IntrinsicID, bool IsImageStore)
static Value * emitFPIntBuiltin (CodeGenFunction &CGF, const CallExpr *E, unsigned IntrinsicID)
static StringRef mapScopeToSPIRV (StringRef AMDGCNScope)
static Intrinsic::ID getIntrinsicIDforWaveReduction (unsigned BuiltinID)

EmitAMDGCNBallotForExec()

emitAMDGCNImageOverloadedReturnType()

Definition at line 218 of file AMDGPU.cpp.

References clang::CodeGen::CodeGenFunction::Builder, clang::Call, clang::CodeGen::CodeGenFunction::ConvertType(), clang::CodeGen::CodeGenFunction::EmitScalarExpr(), clang::CallExpr::getArg(), clang::QualType::getCanonicalType(), clang::CodeGen::CodeGenFunction::getContext(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), loadTextureDescPtorAsVec8I32(), V, and clang::CodeGen::CodeGenTypeCache::VoidTy.

Referenced by clang::CodeGen::CodeGenFunction::EmitAMDGPUBuiltinExpr().

emitFPIntBuiltin()

getIntrinsicIDforWaveReduction()

Intrinsic::ID getIntrinsicIDforWaveReduction ( unsigned BuiltinID) static

loadTextureDescPtorAsVec8I32()

mapScopeToSPIRV()

StringRef mapScopeToSPIRV ( StringRef AMDGCNScope) inlinestatic