MLIR  16.0.0git
Variables
FunctionCallUtils.cpp File Reference
#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"
+ Include dependency graph for FunctionCallUtils.cpp:

Go to the source code of this file.

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 kPrintF32 = "printF32"
 
static constexpr llvm::StringRef kPrintF64 = "printF64"
 
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"
 

Variable Documentation

◆ kAlignedAlloc

constexpr llvm::StringRef kAlignedAlloc = "aligned_alloc"
static

Definition at line 36 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateAlignedAllocFn().

◆ kFree

constexpr llvm::StringRef kFree = "free"
static

Definition at line 37 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateFreeFn().

◆ kGenericAlignedAlloc

constexpr llvm::StringRef kGenericAlignedAlloc
static
Initial value:
=
"_mlir_memref_to_llvm_aligned_alloc"

Definition at line 39 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateGenericAlignedAllocFn().

◆ kGenericAlloc

constexpr llvm::StringRef kGenericAlloc = "_mlir_memref_to_llvm_alloc"
static

Definition at line 38 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateGenericAllocFn().

◆ kGenericFree

constexpr llvm::StringRef kGenericFree = "_mlir_memref_to_llvm_free"
static

Definition at line 41 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateGenericFreeFn().

◆ kMalloc

constexpr llvm::StringRef kMalloc = "malloc"
static

Definition at line 35 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateMallocFn().

◆ kMemRefCopy

constexpr llvm::StringRef kMemRefCopy = "memrefCopy"
static

Definition at line 42 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreateMemRefCopyFn().

◆ kPrintClose

constexpr llvm::StringRef kPrintClose = "printClose"
static

Definition at line 32 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintCloseFn().

◆ kPrintComma

constexpr llvm::StringRef kPrintComma = "printComma"
static

Definition at line 33 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintCommaFn().

◆ kPrintF32

constexpr llvm::StringRef kPrintF32 = "printF32"
static

Definition at line 29 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintF32Fn().

◆ kPrintF64

constexpr llvm::StringRef kPrintF64 = "printF64"
static

Definition at line 30 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintF64Fn().

◆ kPrintI64

constexpr llvm::StringRef kPrintI64 = "printI64"
static

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().

◆ kPrintNewline

constexpr llvm::StringRef kPrintNewline = "printNewline"
static

Definition at line 34 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintNewlineFn().

◆ kPrintOpen

constexpr llvm::StringRef kPrintOpen = "printOpen"
static

Definition at line 31 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintOpenFn().

◆ kPrintU64

constexpr llvm::StringRef kPrintU64 = "printU64"
static

Definition at line 28 of file FunctionCallUtils.cpp.

Referenced by mlir::LLVM::lookupOrCreatePrintU64Fn().