MLIR
20.0.0git
|
#include "mlir/Dialect/LLVMIR/FunctionCallUtils.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/Support/LLVM.h"
Go to the source code of this file.
Functions | |
static LLVM::LLVMPointerType | getCharPtr (MLIRContext *context) |
static LLVM::LLVMPointerType | getVoidPtr (MLIRContext *context) |
Variables | |
static constexpr llvm::StringRef | kPrintI64 = "printI64" |
Helper functions to lookup or create the declaration for commonly used external C function calls. More... | |
static constexpr llvm::StringRef | kPrintU64 = "printU64" |
static constexpr llvm::StringRef | kPrintF16 = "printF16" |
static constexpr llvm::StringRef | kPrintBF16 = "printBF16" |
static constexpr llvm::StringRef | kPrintF32 = "printF32" |
static constexpr llvm::StringRef | kPrintF64 = "printF64" |
static constexpr llvm::StringRef | kPrintString = "printString" |
static constexpr llvm::StringRef | kPrintOpen = "printOpen" |
static constexpr llvm::StringRef | kPrintClose = "printClose" |
static constexpr llvm::StringRef | kPrintComma = "printComma" |
static constexpr llvm::StringRef | kPrintNewline = "printNewline" |
static constexpr llvm::StringRef | kMalloc = "malloc" |
static constexpr llvm::StringRef | kAlignedAlloc = "aligned_alloc" |
static constexpr llvm::StringRef | kFree = "free" |
static constexpr llvm::StringRef | kGenericAlloc = "_mlir_memref_to_llvm_alloc" |
static constexpr llvm::StringRef | kGenericAlignedAlloc |
static constexpr llvm::StringRef | kGenericFree = "_mlir_memref_to_llvm_free" |
static constexpr llvm::StringRef | kMemRefCopy = "memrefCopy" |
|
static |
Definition at line 100 of file FunctionCallUtils.cpp.
References mlir::get().
Referenced by getVoidPtr(), and mlir::LLVM::lookupOrCreatePrintStringFn().
|
static |
Definition at line 104 of file FunctionCallUtils.cpp.
References getCharPtr().
Referenced by mlir::LLVM::lookupOrCreateAlignedAllocFn(), mlir::LLVM::lookupOrCreateFreeFn(), mlir::LLVM::lookupOrCreateGenericAlignedAllocFn(), mlir::LLVM::lookupOrCreateGenericAllocFn(), mlir::LLVM::lookupOrCreateGenericFreeFn(), and mlir::LLVM::lookupOrCreateMallocFn().
|
staticconstexpr |
Definition at line 39 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateAlignedAllocFn().
|
staticconstexpr |
Definition at line 40 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateFreeFn().
|
staticconstexpr |
Definition at line 42 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateGenericAlignedAllocFn().
|
staticconstexpr |
Definition at line 41 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateGenericAllocFn().
|
staticconstexpr |
Definition at line 44 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateGenericFreeFn().
|
staticconstexpr |
Definition at line 38 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateMallocFn().
|
staticconstexpr |
Definition at line 45 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreateMemRefCopyFn().
|
staticconstexpr |
Definition at line 30 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintBF16Fn().
|
staticconstexpr |
Definition at line 35 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintCloseFn().
|
staticconstexpr |
Definition at line 36 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintCommaFn().
|
staticconstexpr |
Definition at line 29 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintF16Fn().
|
staticconstexpr |
Definition at line 31 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintF32Fn().
|
staticconstexpr |
Definition at line 32 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintF64Fn().
|
staticconstexpr |
Helper functions to lookup or create the declaration for commonly used external C function calls.
The list of functions provided here must be implemented separately (e.g. as part of a support runtime library or as part of the libc).
Definition at line 27 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintI64Fn().
|
staticconstexpr |
Definition at line 37 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintNewlineFn().
|
staticconstexpr |
Definition at line 34 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintOpenFn().
|
staticconstexpr |
Definition at line 33 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintStringFn().
|
staticconstexpr |
Definition at line 28 of file FunctionCallUtils.cpp.
Referenced by mlir::LLVM::lookupOrCreatePrintU64Fn().