LLVM
15.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().
Definition at line 161 of file AMDGPUEmitPrintf.cpp.
References Arg, Builder, callAppendStringN(), and getStrlenWithNull().
Referenced by llvm::emitAMDGPUPrintfCall(), and processArg().
|
static |
Definition at line 56 of file AMDGPUEmitPrintf.cpp.
References Builder, Int32Ty, and M.
Referenced by appendArg().
|
static |
Definition at line 149 of file AMDGPUEmitPrintf.cpp.
References Builder, Int32Ty, and M.
Referenced by appendString().
Definition at line 49 of file AMDGPUEmitPrintf.cpp.
References Builder, M, and llvm::IndexedInstrProf::Version.
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::BasicBlock::Create(), llvm::BranchInst::Create(), llvm::Data, llvm::Instruction::eraseFromParent(), llvm::Constant::getNullValue(), llvm::BasicBlock::getTerminator(), M, 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().