LLVM 19.0.0git
Namespaces | Macros | Functions | Variables
AMDGPUPrintfRuntimeBinding.cpp File Reference
#include "AMDGPU.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/DataExtractor.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define DEBUG_TYPE   "printfToRuntime"
 
#define DWORD_ALIGN   4
 

Functions

 INITIALIZE_PASS_BEGIN (AMDGPUPrintfRuntimeBinding, "amdgpu-printf-runtime-binding", "AMDGPU Printf lowering", false, false) INITIALIZE_PASS_END(AMDGPUPrintfRuntimeBinding
 
ModulePassllvm::createAMDGPUPrintfRuntimeBinding ()
 
static bool shouldPrintAsStr (char Specifier, Type *OpType)
 
constexpr StringLiteral NonLiteralStr ("???")
 
static StringRef getAsConstantStr (Value *V)
 
static void diagnoseInvalidFormatString (const CallBase *CI)
 

Variables

amdgpu printf runtime binding
 
amdgpu printf runtime AMDGPU Printf lowering
 
amdgpu printf runtime AMDGPU Printf false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "printfToRuntime"

Definition at line 35 of file AMDGPUPrintfRuntimeBinding.cpp.

◆ DWORD_ALIGN

#define DWORD_ALIGN   4

Definition at line 36 of file AMDGPUPrintfRuntimeBinding.cpp.

Function Documentation

◆ diagnoseInvalidFormatString()

static void diagnoseInvalidFormatString ( const CallBase CI)
static

◆ getAsConstantStr()

static StringRef getAsConstantStr ( Value V)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPUPrintfRuntimeBinding  ,
"amdgpu-printf-runtime-binding"  ,
"AMDGPU Printf lowering"  ,
false  ,
false   
)

◆ NonLiteralStr()

constexpr StringLiteral NonLiteralStr ( "???"  )
constexpr

Referenced by getAsConstantStr().

◆ shouldPrintAsStr()

static bool shouldPrintAsStr ( char  Specifier,
Type OpType 
)
static

Definition at line 120 of file AMDGPUPrintfRuntimeBinding.cpp.

Variable Documentation

◆ binding

amdgpu printf runtime binding

Definition at line 73 of file AMDGPUPrintfRuntimeBinding.cpp.

◆ false

amdgpu printf runtime AMDGPU Printf false

Definition at line 74 of file AMDGPUPrintfRuntimeBinding.cpp.

◆ lowering

amdgpu printf runtime AMDGPU Printf lowering

Definition at line 74 of file AMDGPUPrintfRuntimeBinding.cpp.