#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.
|
| 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.
|
| bool | cir::direct::isAMDGPUPrintfModule (mlir::ModuleOp module) |
| | Whether module lowers device printf with the AMDGPU runtime interface: an AMDGCN triple, or SPIR-V with the AMD vendor.
|
| void | cir::direct::annotateAMDGPUPrintfStrings (mlir::ModuleOp module, mlir::SymbolTableCollection &symbolTables) |
| | Resolve constant format strings for AMDGPU printf ops while their producers are still CIR, recording one string per operand on each op for the lowering to read.
|