LLVM 22.0.0git
AMDGPUEmitPrintf.h
Go to the documentation of this file.
1//===- AMDGPUEmitPrintf.h ---------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Utility function to lower a printf call into a series of device
10// library calls on the AMDGPU target.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
15#define LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
16
17#include "llvm/IR/IRBuilder.h"
19
20namespace llvm {
21
23 ArrayRef<Value *> Args, bool isBuffered);
24
25} // end namespace llvm
26
27#endif // LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
#define LLVM_ABI
Definition Compiler.h:213
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:41
This provides a uniform API for creating instructions and inserting them into a basic block: either a...
Definition IRBuilder.h:2780
LLVM Value Representation.
Definition Value.h:75
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI Value * emitAMDGPUPrintfCall(IRBuilder<> &Builder, ArrayRef< Value * > Args, bool isBuffered)