|
MLIR 24.0.0git
|
#include "mlir/Dialect/LLVMIR/LLVMModuleOps.h"#include "IR/LLVMOps.h"#include "mlir/Dialect/LLVMIR/LLVMCallOps.h"#include "mlir/Dialect/LLVMIR/LLVMConstantOps.h"#include "mlir/Dialect/LLVMIR/LLVMMemoryOps.h"#include "mlir/Dialect/LLVMIR/LLVMTerminatorOps.h"#include "mlir/IR/Builders.h"#include "mlir/IR/BuiltinOps.h"#include "mlir/IR/DialectImplementation.h"#include "mlir/Interfaces/FunctionImplementation.h"#include "llvm/ADT/DenseSet.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/TypeSwitch.h"#include <optional>#include "mlir/Dialect/LLVMIR/LLVMModuleOps.cpp.inc"Go to the source code of this file.
Macros | |
| #define | GET_OP_CLASSES |
Functions | |
| static LogicalResult | verifySymbolAttrUse (FlatSymbolRefAttr symbol, Operation *op, SymbolTableCollection &symbolTable) |
| Verifies symbol's use in op to ensure the symbol is a valid and fully defined llvm.func. | |
| template<typename OpType> | |
| static void | printCommonGlobalAndAlias (OpAsmPrinter &p, OpType op) |
| static LogicalResult | verifyComdat (Operation *op, std::optional< SymbolRefAttr > attr, SymbolTableCollection &symbolTable) |
| static LogicalResult | verifyBlockTags (LLVMFuncOp funcOp) |
| template<typename OpType> | |
| static ParseResult | parseCommonGlobalAndAlias (OpAsmParser &parser, OperationState &result) |
| Parse common attributes that might show up in the same order in both GlobalOp and AliasOp. | |
| static bool | isZeroAttribute (Attribute value) |
| static LogicalResult | checkGlobalXtorData (Operation *op, ArrayAttr data) |
| static Type | buildLLVMFunctionType (OpAsmParser &parser, SMLoc loc, ArrayRef< Type > inputs, ArrayRef< Type > outputs, function_interface_impl::VariadicFlag variadicFlag) |
| #define GET_OP_CLASSES |
Definition at line 1191 of file LLVMModuleOps.cpp.
|
static |
Definition at line 822 of file LLVMModuleOps.cpp.
References b, mlir::AsmParser::emitError(), mlir::AsmParser::getBuilder(), mlir::LLVM::isCompatibleType(), and mlir::function_interface_impl::VariadicFlag::isVariadic().
Definition at line 505 of file LLVMModuleOps.cpp.
References ArrayAttr(), mlir::Operation::emitError(), and success().
Definition at line 378 of file LLVMModuleOps.cpp.
References isZeroAttribute().
Referenced by isZeroAttribute().
|
static |
Parse common attributes that might show up in the same order in both GlobalOp and AliasOp.
Definition at line 260 of file LLVMModuleOps.cpp.
References mlir::AsmParser::emitError(), mlir::AsmParser::getBuilder(), mlir::AsmParser::getContext(), mlir::AsmParser::getCurrentLocation(), mlir::Builder::getI64IntegerAttr(), mlir::AsmParser::parseOptionalKeyword(), mlir::LLVM::parseOptionalLLVMKeyword(), mlir::AsmParser::parseOptionalLParen(), mlir::AsmParser::parseRParen(), result, and success().
|
static |
Definition at line 165 of file LLVMModuleOps.cpp.
|
static |
Definition at line 238 of file LLVMModuleOps.cpp.
References mlir::WalkResult::advance(), and mlir::WalkResult::interrupt().
|
static |
Definition at line 225 of file LLVMModuleOps.cpp.
References mlir::Operation::emitError(), mlir::SymbolTableCollection::lookupNearestSymbolFrom(), and success().
|
static |
Verifies symbol's use in op to ensure the symbol is a valid and fully defined llvm.func.
Definition at line 56 of file LLVMModuleOps.cpp.
References mlir::Operation::emitOpError(), mlir::FlatSymbolRefAttr::getAttr(), mlir::FlatSymbolRefAttr::getValue(), mlir::SymbolTableCollection::lookupNearestSymbolFrom(), and success().