LLVM  14.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"
18 
19 namespace llvm {
20 
21 Value *emitAMDGPUPrintfCall(IRBuilder<> &Builder, ArrayRef<Value *> Args);
22 
23 } // end namespace llvm
24 
25 #endif // LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:22
llvm::IRBuilder<>
IRBuilder.h
Builder
assume Assume Builder
Definition: AssumeBundleBuilder.cpp:650
llvm::TargetStackID::Value
Value
Definition: TargetFrameLowering.h:27
llvm::AMDGPU::HSAMD::Kernel::Key::Args
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
Definition: AMDGPUMetadata.h:389
llvm::emitAMDGPUPrintfCall
Value * emitAMDGPUPrintfCall(IRBuilder<> &Builder, ArrayRef< Value * > Args)
Definition: AMDGPUEmitPrintf.cpp:224