clang 22.0.0git
AMDGPU.cpp File Reference
#include "CGBuiltin.h"
#include "CodeGenFunction.h"
#include "clang/Basic/TargetBuiltins.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#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 ValueEmitAMDGCNBallotForExec (CodeGenFunction &CGF, const CallExpr *E, llvm::Type *RegisterType, llvm::Type *ValueType, bool isExecHi)
static llvm::ValueloadTextureDescPtorAsVec8I32 (CodeGenFunction &CGF, llvm::Value *RsrcPtr)
llvm::CallInst * emitAMDGCNImageOverloadedReturnType (clang::CodeGen::CodeGenFunction &CGF, const clang::CallExpr *E, unsigned IntrinsicID, bool IsImageStore)
static ValueemitFPIntBuiltin (CodeGenFunction &CGF, const CallExpr *E, unsigned IntrinsicID)
static StringRef mapScopeToSPIRV (StringRef AMDGCNScope)
static Intrinsic::ID getIntrinsicIDforWaveReduction (unsigned BuiltinID)

Function Documentation

◆ EmitAMDGCNBallotForExec()

Value * EmitAMDGCNBallotForExec ( CodeGenFunction & CGF,
const CallExpr * E,
llvm::Type * RegisterType,
llvm::Type * ValueType,
bool isExecHi )
static

◆ emitAMDGCNImageOverloadedReturnType()

◆ emitFPIntBuiltin()

◆ getIntrinsicIDforWaveReduction()

Intrinsic::ID getIntrinsicIDforWaveReduction ( unsigned BuiltinID)
static

Definition at line 385 of file AMDGPU.cpp.

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

◆ loadTextureDescPtorAsVec8I32()

◆ mapScopeToSPIRV()

StringRef mapScopeToSPIRV ( StringRef AMDGCNScope)
inlinestatic