clang 24.0.0git
LowerToLLVMOffloadPrintf.h File Reference
#include "mlir/IR/SymbolTable.h"
#include "mlir/Interfaces/DataLayoutInterfaces.h"
#include "mlir/Transforms/DialectConversion.h"
#include "clang/CIR/Dialect/IR/CIRDialect.h"

Go to the source code of this file.

Namespaces

namespace  cir
namespace  cir::direct

Functions

mlir::LogicalResult cir::direct::lowerNVPTXPrintf (cir::OffloadPrintfOp op, mlir::Value format, mlir::ValueRange args, mlir::ConversionPatternRewriter &rewriter, const mlir::DataLayout &dataLayout, mlir::SymbolTableCollection &symbolTables)
 Lowers op, whose lowered format and arguments are format and args, to a call to vprintf.
mlir::LogicalResult cir::direct::lowerAMDGPUPrintf (cir::OffloadPrintfOp op, mlir::ValueRange operands, mlir::ConversionPatternRewriter &rewriter, const mlir::DataLayout &dataLayout, mlir::SymbolTableCollection &symbolTables, unsigned genericAddrSpace, bool isBuffered)
 Lowers op, whose lowered operands are operands, to the buffered printf runtime interface if isBuffered and to hostcall printf otherwise.