LLVM 17.0.0git
|
#include "llvm/Transforms/Utils/AMDGPUEmitPrintf.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/Analysis/ValueTracking.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "amdgpu-emit-printf" |
Functions | |
static Value * | fitArgInto64Bits (IRBuilder<> &Builder, Value *Arg) |
static Value * | callPrintfBegin (IRBuilder<> &Builder, Value *Version) |
static Value * | callAppendArgs (IRBuilder<> &Builder, Value *Desc, int NumArgs, Value *Arg0, Value *Arg1, Value *Arg2, Value *Arg3, Value *Arg4, Value *Arg5, Value *Arg6, bool IsLast) |
static Value * | appendArg (IRBuilder<> &Builder, Value *Desc, Value *Arg, bool IsLast) |
static Value * | getStrlenWithNull (IRBuilder<> &Builder, Value *Str) |
static Value * | callAppendStringN (IRBuilder<> &Builder, Value *Desc, Value *Str, Value *Length, bool isLast) |
static Value * | appendString (IRBuilder<> &Builder, Value *Desc, Value *Arg, bool IsLast) |
static Value * | processArg (IRBuilder<> &Builder, Value *Desc, Value *Arg, bool SpecIsCString, bool IsLast) |
static void | locateCStrings (SparseBitVector< 8 > &BV, Value *Fmt) |
#define DEBUG_TYPE "amdgpu-emit-printf" |
Definition at line 23 of file AMDGPUEmitPrintf.cpp.
Definition at line 72 of file AMDGPUEmitPrintf.cpp.
References Arg, Builder, callAppendArgs(), and fitArgInto64Bits().
Referenced by processArg().
|
static |
Definition at line 161 of file AMDGPUEmitPrintf.cpp.
References Arg, Builder, callAppendStringN(), getStrlenWithNull(), and llvm::Length.
Referenced by llvm::emitAMDGPUPrintfCall(), and processArg().
|
static |
Definition at line 56 of file AMDGPUEmitPrintf.cpp.
References Builder, and Int32Ty.
Referenced by appendArg().
|
static |
Definition at line 149 of file AMDGPUEmitPrintf.cpp.
References Builder, Int32Ty, and llvm::Length.
Referenced by appendString().
Definition at line 49 of file AMDGPUEmitPrintf.cpp.
References Builder.
Referenced by llvm::emitAMDGPUPrintfCall().
Definition at line 25 of file AMDGPUEmitPrintf.cpp.
References Arg, Builder, llvm::Type::DoubleTyID, and llvm_unreachable.
Referenced by appendArg().
Definition at line 82 of file AMDGPUEmitPrintf.cpp.
References llvm::BasicBlock::begin(), Builder, llvm::BranchInst::Create(), llvm::BasicBlock::Create(), llvm::Data, End, llvm::Instruction::eraseFromParent(), llvm::Constant::getNullValue(), llvm::BasicBlock::getTerminator(), and llvm::BasicBlock::splitBasicBlock().
Referenced by appendString().
|
static |
Definition at line 182 of file AMDGPUEmitPrintf.cpp.
References llvm::getConstantStringInfo(), llvm::StringRef::npos, and llvm::SparseBitVector< ElementSize >::set().
Referenced by llvm::emitAMDGPUPrintfCall().
|
static |
Definition at line 169 of file AMDGPUEmitPrintf.cpp.
References appendArg(), appendString(), Arg, and Builder.
Referenced by llvm::emitAMDGPUPrintfCall().