1 //===- AMDGPUEmitPrintf.h ---------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // Utility function to lower a printf call into a series of device
10 // library calls on the AMDGPU target.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
15 #define LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H
17 #include "llvm/IR/IRBuilder.h"
21 Value *emitAMDGPUPrintfCall(IRBuilder<> &Builder, ArrayRef<Value *> Args);
23 } // end namespace llvm
25 #endif // LLVM_TRANSFORMS_UTILS_AMDGPUEMITPRINTF_H