| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | IR.cpp | 41 return unwrap(ctx1) == unwrap(ctx2); in mlirContextEqual() 94 return unwrap(dialect1) == unwrap(dialect2); in mlirDialectEqual() 172 StringAttr::get(unwrap(context), unwrap(name)), unwrap(childLoc)))); in mlirLocationNameGet() 180 return unwrap(l1) == unwrap(l2); in mlirLocationEqual() 367 return unwrap(op) == unwrap(other); in mlirOperationEqual() 469 unwrap(op)->setAttr(unwrap(name), unwrap(attr)); in mlirOperationSetAttributeByName() 509 return unwrap(region) == unwrap(other); in mlirRegionEqual() 571 return unwrap(block) == unwrap(other); in mlirBlockEqual() 653 return wrap(unwrap(block)->addArgument(unwrap(type), unwrap(loc))); in mlirBlockAddArgument() 733 return unwrap(t1) == unwrap(t2); in mlirTypeEqual() [all …]
|
| H A D | BuiltinTypes.cpp | 183 unwrap(elementType))); in mlirVectorTypeGetChecked() 204 unwrap(encoding))); in mlirRankedTensorTypeGet() 213 unwrap(elementType), unwrap(encoding))); in mlirRankedTensorTypeGetChecked() 226 return wrap(UnrankedTensorType::getChecked(unwrap(loc), unwrap(elementType))); in mlirUnrankedTensorTypeGetChecked() 243 unwrap(memorySpace))); in mlirMemRefTypeGet() 252 unwrap(elementType), in mlirMemRefTypeGetChecked() 256 unwrap(memorySpace))); in mlirMemRefTypeGetChecked() 273 unwrap(elementType), MemRefLayoutAttrInterface(), unwrap(memorySpace))); in mlirMemRefTypeContiguousGetChecked() 295 UnrankedMemRefType::get(unwrap(elementType), unwrap(memorySpace))); in mlirUnrankedMemRefTypeGet() 301 return wrap(UnrankedMemRefType::getChecked(unwrap(loc), unwrap(elementType), in mlirUnrankedMemRefTypeGetChecked() [all …]
|
| H A D | BuiltinAttributes.cpp | 41 return unwrap(attr).isa<ArrayAttr>(); in mlirAttributeIsAArray() 91 return wrap(unwrap(attr).cast<DictionaryAttr>().get(unwrap(name))); in mlirDictionaryAttrGetElementByName() 99 return unwrap(attr).isa<FloatAttr>(); in mlirAttributeIsAFloat() 109 return wrap(FloatAttr::getChecked(unwrap(loc), unwrap(type), value)); in mlirFloatAttrDoubleGetChecked() 145 return unwrap(attr).isa<BoolAttr>(); in mlirAttributeIsABool() 176 OpaqueAttr::get(StringAttr::get(unwrap(ctx), unwrap(dialectNamespace)), in mlirOpaqueAttrGet() 197 return wrap((Attribute)StringAttr::get(unwrap(ctx), unwrap(str))); in mlirStringAttrGet() 201 return wrap((Attribute)StringAttr::get(unwrap(str), unwrap(type))); in mlirStringAttrTypedGet() 223 auto symbolAttr = StringAttr::get(unwrap(ctx), unwrap(symbol)); in mlirSymbolRefAttrGet() 254 return wrap(FlatSymbolRefAttr::get(unwrap(ctx), unwrap(symbol))); in mlirFlatSymbolRefAttrGet() [all …]
|
| H A D | AffineExpr.cpp | 21 return wrap(unwrap(affineExpr).getContext()); in mlirAffineExprGetContext() 25 return unwrap(lhs) == unwrap(rhs); in mlirAffineExprEqual() 31 unwrap(affineExpr).print(stream); in mlirAffineExprPrint() 35 unwrap(affineExpr).dump(); in mlirAffineExprDump() 39 return unwrap(affineExpr).isSymbolicOrConstant(); in mlirAffineExprIsSymbolicOrConstant() 43 return unwrap(affineExpr).isPureAffine(); in mlirAffineExprIsPureAffine() 51 return unwrap(affineExpr).isMultipleOf(factor); in mlirAffineExprIsMultipleOf() 61 return wrap(unwrap(affineExpr).compose(unwrap(affineMap))); in mlirAffineExprCompose() 69 return unwrap(affineExpr).isa<AffineDimExpr>(); in mlirAffineExprIsADim() 122 unwrap(rhs))); in mlirAffineAddExprGet() [all …]
|
| H A D | AffineMap.cpp | 22 return wrap(unwrap(affineMap).getContext()); in mlirAffineMapGetContext() 26 return unwrap(a1) == unwrap(a2); in mlirAffineMapEqual() 32 unwrap(affineMap).print(stream); in mlirAffineMapPrint() 38 return wrap(AffineMap::get(unwrap(ctx))); in mlirAffineMapEmptyGet() 75 return unwrap(affineMap).isIdentity(); in mlirAffineMapIsIdentity() 83 return unwrap(affineMap).isEmpty(); in mlirAffineMapIsEmpty() 95 return unwrap(affineMap).getNumDims(); in mlirAffineMapGetNumDims() 99 return unwrap(affineMap).getNumSymbols(); in mlirAffineMapGetNumSymbols() 103 return unwrap(affineMap).getNumResults(); in mlirAffineMapGetNumResults() 111 return unwrap(affineMap).getNumInputs(); in mlirAffineMapGetNumInputs() [all …]
|
| H A D | Pass.cpp | 24 return wrap(new PassManager(unwrap(ctx))); in mlirPassManagerCreate() 28 delete unwrap(passManager); in mlirPassManagerDestroy() 38 return wrap(unwrap(passManager)->run(unwrap(module))); in mlirPassManagerRun() 46 unwrap(passManager)->enableVerifier(enable); in mlirPassManagerEnableVerifier() 51 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirPassManagerGetNestedUnder() 56 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirOpPassManagerGetNestedUnder() 60 unwrap(passManager)->addPass(std::unique_ptr<Pass>(unwrap(pass))); in mlirPassManagerAddOwnedPass() 65 unwrap(passManager)->addPass(std::unique_ptr<Pass>(unwrap(pass))); in mlirOpPassManagerAddOwnedPass() 78 return wrap(mlir::parsePassPipeline(unwrap(pipeline), *unwrap(passManager))); in mlirParsePassPipeline() 162 unwrap(passID), unwrap(name), unwrap(argument), unwrap(description), in mlirCreateExternalPass() [all …]
|
| H A D | IntegerSet.cpp | 20 return wrap(unwrap(set).getContext()); in mlirIntegerSetGetContext() 24 return unwrap(s1) == unwrap(s2); in mlirIntegerSetEqual() 30 unwrap(set).print(stream); in mlirIntegerSetPrint() 39 unwrap(context))); in mlirIntegerSetEmptyGet() 64 return wrap(unwrap(set).replaceDimsAndSymbols( in mlirIntegerSetReplaceGet() 70 return unwrap(set).isEmptyIntegerSet(); in mlirIntegerSetIsCanonicalEmpty() 74 return static_cast<intptr_t>(unwrap(set).getNumDims()); in mlirIntegerSetGetNumDims() 78 return static_cast<intptr_t>(unwrap(set).getNumSymbols()); in mlirIntegerSetGetNumSymbols() 82 return static_cast<intptr_t>(unwrap(set).getNumInputs()); in mlirIntegerSetGetNumInputs() 90 return static_cast<intptr_t>(unwrap(set).getNumEqualities()); in mlirIntegerSetGetNumEqualities() [all …]
|
| H A D | Diagnostics.cpp | 21 unwrap(diagnostic).print(stream); in mlirDiagnosticPrint() 25 return wrap(unwrap(diagnostic).getLocation()); in mlirDiagnosticGetLocation() 29 switch (unwrap(diagnostic).getSeverity()) { in mlirDiagnosticGetSeverity() 45 return static_cast<intptr_t>(llvm::size(unwrap(diagnostic).getNotes())); in mlirDiagnosticGetNumNotes() 51 return wrap(*std::next(unwrap(diagnostic).getNotes().begin(), pos)); in mlirDiagnosticGetNote() 63 unwrap(context)->getDiagEngine().registerHandler( in mlirContextAttachDiagnosticHandler() 67 return unwrap(handler(wrap(diagnostic), ownedUserData.get())); in mlirContextAttachDiagnosticHandler() 74 unwrap(context)->getDiagEngine().eraseHandler( in mlirContextDetachDiagnosticHandler() 79 emitError(unwrap(location)) << message; in mlirEmitError()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Core.cpp | 3153 return wrap(unwrap(B)->CreateCondBr(unwrap(If), unwrap(Then), unwrap(Else))); in LLVMBuildCondBr() 3175 unwrap(B)->CreateInvoke(FnT, unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke() 3184 unwrap<FunctionType>(Ty), unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke2() 3318 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAdd() 3338 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSub() 3438 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildOr() 3502 return wrap(unwrap(B)->CreateMemSet(unwrap(Ptr), unwrap(Val), unwrap(Len), in LLVMBuildMemSet() 3867 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast() 3926 return wrap(unwrap(B)->CreateSelect(unwrap(If), unwrap(Then), unwrap(Else), in LLVMBuildSelect() 3992 return wrap(unwrap(B)->CreatePtrDiff(unwrap(ElemTy), unwrap(LHS), in LLVMBuildPtrDiff2() [all …]
|
| H A D | DebugInfo.cpp | 1130 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateEnumerationType() 1143 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateUnionType() 1157 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateArrayType() 1168 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateVectorType() 1200 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateStructType() 1374 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateClassType() 1515 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareBefore() 1524 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareAtEnd() 1536 unwrap(Val), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDbgValueBefore() 1548 unwrap(Val), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDbgValueAtEnd() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | Target.cpp | 52 unwrap(M)->setDataLayout(*unwrap(DL)); in LLVMSetModuleDataLayout() 60 delete unwrap(TD); in LLVMDisposeTargetData() 65 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI))); in LLVMAddTargetLibraryInfo() 94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext() 98 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext() 102 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits() 106 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType() 110 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType() 114 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMABIAlignmentOfType() 118 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); in LLVMCallFrameAlignmentOfType() [all …]
|
| H A D | TargetMachineC.cpp | 30 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function 33 static Target *unwrap(LLVMTargetRef P) { in unwrap() function 52 return wrap(unwrap(T)->getNext()); in LLVMGetNextTarget() 79 return unwrap(T)->getName(); in LLVMGetTargetName() 83 return unwrap(T)->getShortDescription(); in LLVMGetTargetDescription() 87 return unwrap(T)->hasJIT(); in LLVMTargetHasJIT() 91 return unwrap(T)->hasTargetMachine(); in LLVMTargetHasTargetMachine() 95 return unwrap(T)->hasMCAsmBackend(); in LLVMTargetHasAsmBackend() 185 TargetMachine* TM = unwrap(T); in LLVMTargetMachineEmit() 186 Module* Mod = unwrap(M); in LLVMTargetMachineEmit() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Scalar.cpp | 121 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts() 153 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass() 157 unwrap(PM)->add(createNewGVNPass()); in LLVMAddNewGVNPass() 177 unwrap(PM)->add(createLoopSinkPass()); in LLVMAddLoopSinkPass() 181 unwrap(PM)->add(createLICMPass()); in LLVMAddLICMPass() 229 unwrap(PM)->add(createSCCPPass()); in LLVMAddSCCPPass() 233 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPass() 237 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPassSSA() 242 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPassWithThreshold() 258 unwrap(PM)->add(createVerifierPass()); in LLVMAddVerifierPass() [all …]
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | Quant.cpp | 67 return unwrap(type) in mlirQuantizedTypeGetStorageTypeIntegralWidth() 75 unwrap(candidate)); in mlirQuantizedTypeIsCompatibleExpressedType() 85 unwrap(candidate))); in mlirQuantizedTypeCastFromStorageType() 96 unwrap(candidate))); in mlirQuantizedTypeCastFromExpressedType() 107 unwrap(candidate))); in mlirQuantizedTypeCastExpressedToStorageType() 139 flags, unwrap(storageType), unwrap(expressedType), scale, zeroPoint, in mlirUniformQuantizedTypeGet() 169 flags, unwrap(storageType), unwrap(expressedType), in mlirUniformQuantizedPerAxisTypeGet() 175 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetNumDims() 182 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetScale() 189 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetZeroPoint() [all …]
|
| H A D | PDL.cpp | 24 return unwrap(type).isa<pdl::PDLType>(); in MLIR_DEFINE_CAPI_DIALECT_REGISTRATION() 32 return unwrap(type).isa<pdl::AttributeType>(); in mlirTypeIsAPDLAttributeType() 36 return wrap(pdl::AttributeType::get(unwrap(ctx))); in mlirPDLAttributeTypeGet() 44 return unwrap(type).isa<pdl::OperationType>(); in mlirTypeIsAPDLOperationType() 48 return wrap(pdl::OperationType::get(unwrap(ctx))); in mlirPDLOperationTypeGet() 56 return unwrap(type).isa<pdl::RangeType>(); in mlirTypeIsAPDLRangeType() 60 return wrap(pdl::RangeType::get(unwrap(elementType))); in mlirPDLRangeTypeGet() 72 return unwrap(type).isa<pdl::TypeType>(); in mlirTypeIsAPDLTypeType() 76 return wrap(pdl::TypeType::get(unwrap(ctx))); in mlirPDLTypeTypeGet() 84 return unwrap(type).isa<pdl::ValueType>(); in mlirTypeIsAPDLValueType() [all …]
|
| H A D | SparseTensor.cpp | 34 return unwrap(attr).isa<SparseTensorEncodingAttr>(); in mlirAttributeIsASparseTensorEncodingAttr() 46 return wrap(SparseTensorEncodingAttr::get(unwrap(ctx), cppDimLevelTypes, in mlirSparseTensorEncodingAttrGet() 47 unwrap(dimOrdering), in mlirSparseTensorEncodingAttrGet() 52 return wrap(unwrap(attr).cast<SparseTensorEncodingAttr>().getDimOrdering()); in mlirSparseTensorEncodingAttrGetDimOrdering() 56 return unwrap(attr).cast<SparseTensorEncodingAttr>().getDimLevelType().size(); in mlirSparseTensorEncodingGetNumDimLevelTypes() 62 unwrap(attr).cast<SparseTensorEncodingAttr>().getDimLevelType()[pos]); in mlirSparseTensorEncodingAttrGetDimLevelType() 66 return unwrap(attr).cast<SparseTensorEncodingAttr>().getPointerBitWidth(); in mlirSparseTensorEncodingAttrGetPointerBitWidth() 70 return unwrap(attr).cast<SparseTensorEncodingAttr>().getIndexBitWidth(); in mlirSparseTensorEncodingAttrGetIndexBitWidth()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | Object.cpp | 87 delete unwrap(BR); in LLVMDisposeBinary() 197 delete unwrap(ObjectFile); in LLVMDisposeObjectFile() 208 delete unwrap(SI); in LLVMDisposeSectionIterator() 218 ++(*unwrap(SI)); in LLVMMoveToNextSection() 230 *unwrap(Sect) = *SecOrErr; in LLVMMoveToContainingSection() 241 delete unwrap(SI); in LLVMDisposeSymbolIterator() 251 ++(*unwrap(SI)); in LLVMMoveToNextSymbol() 279 return (*unwrap(SI))->containsSymbol(**unwrap(Sym)); in LLVMGetSectionContainsSymbol() 289 delete unwrap(SI); in LLVMDisposeRelocationIterator() 294 return (*unwrap(SI) == (*unwrap(Section))->relocation_end()) ? 1 : 0; in LLVMIsRelocationIteratorAtEnd() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcV2CBindings.cpp | 380 unwrap(ES)->lookup( in LLVMOrcExecutionSessionLookup() 485 return wrap(lazyReexports(*unwrap(LCTM), *unwrap(ISM), *unwrap(SourceJD), in LLVMOrcLazyReexports() 800 delete unwrap(TSM); in LLVMOrcDisposeThreadSafeModule() 839 delete unwrap(JTMB); in LLVMOrcDisposeJITTargetMachineBuilder() 859 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFile() 866 unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT() 947 unwrap(Builder)->setJITTargetMachineBuilder(std::move(*unwrap(JTMB))); in LLVMOrcLLJITBuilderSetJITTargetMachineBuilder() 982 delete unwrap(J); in LLVMOrcDisposeLLJIT() 1011 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFile() 1026 return wrap(unwrap(J)->addIRModule(*unwrap(JD), std::move(*TmpTSM))); in LLVMOrcLLJITAddLLVMIRModule() [all …]
|
| /llvm-project-15.0.7/llvm/tools/lto/ |
| H A D | lto.cpp | 150 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 326 LTOModule *M = unwrap(mod); in lto_module_get_macho_cputype() 373 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module() 377 unwrap(cg)->setModule(std::unique_ptr<LTOModule>(unwrap(mod))); in lto_codegen_set_module() 381 unwrap(cg)->setDebugInfo(debug); in lto_codegen_set_debug_model() 405 return unwrap(cg)->setCpu(cpu); in lto_codegen_set_cpu() 448 return !unwrap(cg)->optimize(); in lto_codegen_optimize() 513 return unwrap(mod)->hasCtorDtor(); in lto_module_has_ctor_dtor() 597 return unwrap(mod)->isThinLTO(); in lto_module_is_thinlto() 611 return unwrap(cg)->setCpu(cpu); in thinlto_codegen_set_cpu() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 98 delete unwrap(GenVal); in LLVMDisposeGenericValue() 216 delete unwrap(EE); in LLVMDisposeExecutionEngine() 220 unwrap(EE)->finalizeObject(); in LLVMRunStaticConstructors() 225 unwrap(EE)->finalizeObject(); in LLVMRunStaticDestructors() 235 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain() 249 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction() 257 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule() 262 Module *Mod = unwrap(M); in LLVMRemoveModule() 293 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping() 299 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Remarks/ |
| H A D | Remark.cpp | 32 return unwrap(String)->data(); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 36 return unwrap(String)->size(); in LLVMRemarkStringGetLen() 41 return wrap(&unwrap(DL)->SourceFilePath); in LLVMRemarkDebugLocGetSourceFilePath() 45 return unwrap(DL)->SourceLine; in LLVMRemarkDebugLocGetSourceLine() 50 return unwrap(DL)->SourceColumn; in LLVMRemarkDebugLocGetSourceColumn() 54 return wrap(&unwrap(Arg)->Key); in LLVMRemarkArgGetKey() 58 return wrap(&unwrap(Arg)->Val); in LLVMRemarkArgGetValue() 69 delete unwrap(Remark); in LLVMRemarkEntryDispose() 79 return wrap(&unwrap(Remark)->PassName); in LLVMRemarkEntryGetPassName() 106 return unwrap(Remark)->Args.size(); in LLVMRemarkEntryGetNumArgs() [all …]
|
| /llvm-project-15.0.7/llvm/bindings/go/llvm/ |
| H A D | IRBindings.cpp | 25 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata() 35 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2() 40 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand2() 45 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2() 49 MDNode *N = MD ? unwrap<MDNode>(MD) : nullptr; in LLVMSetMetadata2() 50 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2() 57 unwrap(Bref)->SetCurrentDebugLocation(DebugLoc()); in LLVMGoSetCurrentDebugLocation() 59 unwrap(Bref)->SetCurrentDebugLocation(DILocation::get( in LLVMGoSetCurrentDebugLocation() 60 unwrap<MDNode>(Scope)->getContext(), Line, Col, unwrap<MDNode>(Scope), in LLVMGoSetCurrentDebugLocation() 61 InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); in LLVMGoSetCurrentDebugLocation() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | IPO.cpp | 65 initializeIPO(*unwrap(R)); in LLVMInitializeIPO() 73 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass() 77 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass() 85 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass() 93 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass() 97 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass() 101 unwrap(PM)->add(createPruneEHPass()); in LLVMAddPruneEHPass() 105 unwrap(PM)->add(createIPSCCPPass()); in LLVMAddIPSCCPPass() 109 unwrap(PM)->add(createMergeFunctionsPass()); in LLVMAddMergeFunctionsPass() 129 unwrap(PM)->add(createStripDeadPrototypesPass()); in LLVMAddStripDeadPrototypesPass() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Passes/ |
| H A D | PassBuilderBindings.cpp | 39 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function 49 TargetMachine *Machine = unwrap(TM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 50 LLVMPassBuilderOptions *PassOpts = unwrap(Options); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 54 Module *Mod = unwrap(M); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 88 unwrap(Options)->VerifyEach = VerifyEach; in LLVMPassBuilderOptionsSetVerifyEach() 93 unwrap(Options)->DebugLogging = DebugLogging; in LLVMPassBuilderOptionsSetDebugLogging() 113 unwrap(Options)->PTO.LoopUnrolling = LoopUnrolling; in LLVMPassBuilderOptionsSetLoopUnrolling() 123 unwrap(Options)->PTO.LicmMssaOptCap = LicmMssaOptCap; in LLVMPassBuilderOptionsSetLicmMssaOptCap() 128 unwrap(Options)->PTO.LicmMssaNoAccForPromotionCap = in LLVMPassBuilderOptionsSetLicmMssaNoAccForPromotionCap() 139 unwrap(Options)->PTO.MergeFunctions = MergeFunctions; in LLVMPassBuilderOptionsSetMergeFunctions() [all …]
|
| /llvm-project-15.0.7/mlir/lib/CAPI/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 31 mlir::registerLLVMDialectTranslation(*unwrap(op)->getContext()); in mlirExecutionEngineCreate() 57 auto jitOrError = ExecutionEngine::create(unwrap(op), jitOptions); in mlirExecutionEngineCreate() 66 delete (unwrap(jit)); in mlirExecutionEngineDestroy() 72 const std::string ifaceName = ("_mlir_ciface_" + unwrap(name)).str(); in mlirExecutionEngineInvokePacked() 73 llvm::Error error = unwrap(jit)->invokePacked( in mlirExecutionEngineInvokePacked() 82 auto expectedFPtr = unwrap(jit)->lookupPacked(unwrap(name)); in mlirExecutionEngineLookupPacked() 90 auto expectedFPtr = unwrap(jit)->lookup(unwrap(name)); in mlirExecutionEngineLookup() 99 unwrap(jit)->registerSymbols([&](llvm::orc::MangleAndInterner interner) { in mlirExecutionEngineRegisterSymbol() 101 symbolMap[interner(unwrap(name))] = in mlirExecutionEngineRegisterSymbol() 109 unwrap(jit)->dumpToObjectFile(unwrap(name)); in mlirExecutionEngineDumpToObjectFile()
|