Lines Matching defs:ModuleImport

1 //===- ModuleImport.cpp - LLVM to MLIR conversion ---------------*- C++ -*-===//
14 #include "mlir/Target/LLVMIR/ModuleImport.h"
132 ModuleImport &moduleImport,
162 ModuleImport::ModuleImport(ModuleOp mlirModule,
178 ComdatOp ModuleImport::getGlobalComdatOp() {
190 LogicalResult ModuleImport::processTBAAMetadata(const llvm::MDNode *node) {
414 ModuleImport::processAccessGroupMetadata(const llvm::MDNode *node) {
423 ModuleImport::processAliasScopeMetadata(const llvm::MDNode *node) {
502 ModuleImport::lookupAliasScopeAttrs(const llvm::MDNode *node) const {
516 void ModuleImport::addDebugIntrinsic(llvm::CallInst *intrinsic) {
520 LogicalResult ModuleImport::convertLinkerOptionsMetadata() {
537 LogicalResult ModuleImport::convertIdentMetadata() {
554 LogicalResult ModuleImport::convertCommandlineMetadata() {
571 LogicalResult ModuleImport::convertMetadata() {
606 void ModuleImport::processComdat(const llvm::Comdat *comdat) {
622 LogicalResult ModuleImport::convertComdats() {
632 LogicalResult ModuleImport::convertGlobals() {
650 LogicalResult ModuleImport::convertDataLayout() {
665 LogicalResult ModuleImport::convertFunctions() {
672 void ModuleImport::setNonDebugMetadataAttrs(llvm::Instruction *inst,
690 void ModuleImport::setIntegerOverflowFlags(llvm::Instruction *inst,
702 void ModuleImport::setExactFlag(llvm::Instruction *inst, Operation *op) const {
708 void ModuleImport::setDisjointFlag(llvm::Instruction *inst,
716 void ModuleImport::setNonNegFlag(llvm::Instruction *inst, Operation *op) const {
722 void ModuleImport::setFastmathFlagsAttr(llvm::Instruction *inst,
777 Type ModuleImport::getBuiltinTypeForAttr(Type type) {
845 Attribute ModuleImport::getConstantAsAttr(llvm::Constant *constant) {
933 ModuleImport::getOrCreateNamelessSymbolName(llvm::GlobalVariable *globalVar) {
950 LogicalResult ModuleImport::convertGlobal(llvm::GlobalVariable *globalVar) {
1023 ModuleImport::convertGlobalCtorsAndDtors(llvm::GlobalVariable *globalVar) {
1071 ModuleImport::getConstantsToConvert(llvm::Constant *constant) {
1133 FailureOr<Value> ModuleImport::convertConstant(llvm::Constant *constant) {
1263 FailureOr<Value> ModuleImport::convertConstantExpr(llvm::Constant *constant) {
1295 FailureOr<Value> ModuleImport::convertValue(llvm::Value *value) {
1314 FailureOr<Value> ModuleImport::convertMetadataValue(llvm::Value *value) {
1337 ModuleImport::convertValues(ArrayRef<llvm::Value *> values) {
1349 LogicalResult ModuleImport::convertIntrinsicArguments(
1413 IntegerAttr ModuleImport::matchIntegerAttr(llvm::Value *value) {
1423 FloatAttr ModuleImport::matchFloatAttr(llvm::Value *value) {
1433 DILocalVariableAttr ModuleImport::matchLocalVariableAttr(llvm::Value *value) {
1439 DILabelAttr ModuleImport::matchLabelAttr(llvm::Value *value) {
1446 ModuleImport::matchFPExceptionBehaviorAttr(llvm::Value *value) {
1456 RoundingModeAttr ModuleImport::matchRoundingModeAttr(llvm::Value *value) {
1467 ModuleImport::matchAliasScopeAttrs(llvm::Value *value) {
1473 Location ModuleImport::translateLoc(llvm::DILocation *loc) {
1478 ModuleImport::convertBranchArgs(llvm::Instruction *branch,
1493 ModuleImport::convertCallOperands(llvm::CallBase *callInst,
1522 LLVMFunctionType ModuleImport::convertFunctionType(llvm::CallBase *callInst) {
1535 FlatSymbolRefAttr ModuleImport::convertCalleeName(llvm::CallBase *callInst) {
1542 LogicalResult ModuleImport::convertIntrinsic(llvm::CallInst *inst) {
1550 LogicalResult ModuleImport::convertInstruction(llvm::Instruction *inst) {
1798 LogicalResult ModuleImport::processInstruction(llvm::Instruction *inst) {
1812 FlatSymbolRefAttr ModuleImport::getPersonalityAsAttr(llvm::Function *f) {
1939 void ModuleImport::processFunctionAttributes(llvm::Function *func,
2043 ModuleImport::convertParameterAttribute(llvm::AttributeSet llvmParamAttrs,
2081 void ModuleImport::convertParameterAttributes(llvm::Function *func,
2104 LogicalResult ModuleImport::convertInvokeAttributes(llvm::InvokeInst *inst,
2109 LogicalResult ModuleImport::convertCallAttributes(llvm::CallInst *inst,
2133 LogicalResult ModuleImport::processFunction(llvm::Function *func) {
2257 ModuleImport::processDebugIntrinsic(llvm::DbgVariableIntrinsic *dbgIntr,
2323 LogicalResult ModuleImport::processDebugIntrinsics() {
2333 LogicalResult ModuleImport::processBasicBlock(llvm::BasicBlock *bb,
2361 ModuleImport::lookupAccessGroupAttrs(const llvm::MDNode *node) const {
2366 ModuleImport::translateLoopAnnotationAttr(const llvm::MDNode *node,
2391 ModuleImport moduleImport(module.get(), std::move(llvmModule),