LLVM 24.0.0git
AMDGPUPrintf.h File Reference

Helpers for the AMDGPU printf runtime interface, shared by the lowerings of printf calls on the AMDGPU target. More...

#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
#include <cstdint>
#include <string>

Go to the source code of this file.

Namespaces

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

Functions

LLVM_ABI void llvm::locateAMDGPUPrintfCStrings (SparseBitVector< 8 > &BV, StringRef Fmt)
 Marks the printf arguments that the format string Fmt specifies as strings, i.e.
LLVM_ABI uint64_t llvm::getAMDGPUPrintfFormatHash (StringRef Fmt)
 Returns the ID that buffered printf stores in place of the constant format string Fmt the low 64 bits of its MD5 hash.
LLVM_ABI std::string llvm::getAMDGPUPrintfFormatMetadata (StringRef Fmt)
 Returns the llvm.printf.fmts entry that maps the ID of the constant format string Fmt back to the string.
LLVM_ABI void llvm::packAMDGPUPrintfConstantString (StringRef Str, SmallVectorImpl< uint32_t > &Words)
 Splits the constant string argument Str, including its terminating NUL, into the little-endian 32-bit words that buffered printf stores for it, padded to a multiple of 8 bytes.

Variables

constexpr StringLiteral llvm::AMDGPUPrintfNonConstFormatMetadata
 The llvm.printf.fmts entry added when a module only uses buffered printf with non-constant format strings.

Detailed Description

Helpers for the AMDGPU printf runtime interface, shared by the lowerings of printf calls on the AMDGPU target.

Definition in file AMDGPUPrintf.h.