clang  19.0.0git
Functions
AMDGPU.cpp File Reference
#include "ABIInfoImpl.h"
#include "TargetInfo.h"
#include "clang/Basic/TargetOptions.h"

Go to the source code of this file.

Functions

static bool requiresAMDGPUProtectedVisibility (const Decl *D, llvm::GlobalValue *GV)
 
static void addAMDGCOrNVVMMetadata (const char *AnnotationName, llvm::GlobalValue *GV, StringRef Name, int Operand)
 Helper function for AMDGCN and NVVM targets, adds a NamedMDNode with GV, Name, and Operand as operands, and adds the resulting MDNode to the AnnotationName MDNode. More...
 

Function Documentation

◆ addAMDGCOrNVVMMetadata()

static void addAMDGCOrNVVMMetadata ( const char *  AnnotationName,
llvm::GlobalValue *  GV,
StringRef  Name,
int  Operand 
)
static

Helper function for AMDGCN and NVVM targets, adds a NamedMDNode with GV, Name, and Operand as operands, and adds the resulting MDNode to the AnnotationName MDNode.

Definition at line 393 of file AMDGPU.cpp.

◆ requiresAMDGPUProtectedVisibility()

static bool requiresAMDGPUProtectedVisibility ( const Decl D,
llvm::GlobalValue *  GV 
)
static

Definition at line 312 of file AMDGPU.cpp.

References clang::Decl::hasAttr(), and clang::HiddenVisibility.