| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | IR.cpp | 37 return wrap(context); in mlirContextCreate() 106 return wrap(new DialectRegistry()); in mlirDialectRegistryCreate() 118 return wrap(new OpPrintingFlags()); in mlirOpPrintingFlagsCreate() 150 return wrap(Location( in mlirLocationFileLineColGet() 169 return wrap( in mlirLocationNameGet() 171 return wrap(Location(NameLoc::get( in mlirLocationNameGet() 359 return wrap(unwrap(op)->clone()); in mlirOperationClone() 459 return MlirNamedAttribute{wrap(attr.getName()), wrap(attr.getValue())}; in mlirOperationGetAttribute() 567 return wrap(b); in mlirBlockCreate() 590 return wrap(&cppBlock->front()); in mlirBlockGetFirstOperation() [all …]
|
| H A D | BuiltinTypes.cpp | 174 return wrap( in mlirVectorTypeGet() 181 return wrap(VectorType::getChecked( in mlirVectorTypeGetChecked() 202 return wrap(RankedTensorType::get( in mlirRankedTensorTypeGet() 238 return wrap(MemRefType::get( in mlirMemRefTypeGet() 250 return wrap(MemRefType::getChecked( in mlirMemRefTypeGetChecked() 262 return wrap(MemRefType::get( in mlirMemRefTypeContiguousGet() 271 return wrap(MemRefType::getChecked( in mlirMemRefTypeContiguousGetChecked() 294 return wrap( in mlirUnrankedMemRefTypeGet() 358 return wrap( in mlirFunctionTypeGetInput() 364 return wrap( in mlirFunctionTypeGetResult() [all …]
|
| H A D | BuiltinAttributes.cpp | 47 return wrap( in mlirArrayAttrGet() 175 return wrap( in mlirOpaqueAttrGet() 338 return wrap( in mlirDenseElementsAttrGet() 363 return wrap( in mlirDenseElementsAttrBoolSplatGet() 368 return wrap( in mlirDenseElementsAttrUInt8SplatGet() 373 return wrap( in mlirDenseElementsAttrInt8SplatGet() 378 return wrap( in mlirDenseElementsAttrUInt32SplatGet() 383 return wrap( in mlirDenseElementsAttrInt32SplatGet() 388 return wrap( in mlirDenseElementsAttrUInt64SplatGet() 393 return wrap( in mlirDenseElementsAttrInt64SplatGet() [all …]
|
| H A D | AffineMap.cpp | 22 return wrap(unwrap(affineMap).getContext()); in mlirAffineMapGetContext() 38 return wrap(AffineMap::get(unwrap(ctx))); in mlirAffineMapEmptyGet() 43 return wrap(AffineMap::get(dimCount, symbolCount, unwrap(ctx))); in mlirAffineMapZeroResultGet() 55 return wrap(AffineMap::getConstantMap(val, unwrap(ctx))); in mlirAffineMapConstantGet() 60 return wrap(AffineMap::getMultiDimIdentityMap(numDims, unwrap(ctx))); in mlirAffineMapMultiDimIdentityGet() 70 return wrap(AffineMap::getPermutationMap( in mlirAffineMapPermutationGet() 107 return wrap(unwrap(affineMap).getResult(static_cast<unsigned>(pos))); in mlirAffineMapGetResult() 128 return wrap(unwrap(affineMap).getSubMap(pos)); in mlirAffineMapGetSubMap() 133 return wrap(unwrap(affineMap).getMajorSubMap(numResults)); in mlirAffineMapGetMajorSubMap() 138 return wrap(unwrap(affineMap).getMinorSubMap(numResults)); in mlirAffineMapGetMinorSubMap() [all …]
|
| H A D | AffineExpr.cpp | 21 return wrap(unwrap(affineExpr).getContext()); in mlirAffineExprGetContext() 61 return wrap(unwrap(affineExpr).compose(unwrap(affineMap))); in mlirAffineExprCompose() 73 return wrap(getAffineDimExpr(position, unwrap(ctx))); in mlirAffineDimExprGet() 89 return wrap(getAffineSymbolExpr(position, unwrap(ctx))); in mlirAffineSymbolExprGet() 105 return wrap(getAffineConstantExpr(constant, unwrap(ctx))); in mlirAffineConstantExprGet() 121 return wrap(getAffineBinaryOpExpr(mlir::AffineExprKind::Add, unwrap(lhs), in mlirAffineAddExprGet() 134 return wrap(getAffineBinaryOpExpr(mlir::AffineExprKind::Mul, unwrap(lhs), in mlirAffineMulExprGet() 147 return wrap(getAffineBinaryOpExpr(mlir::AffineExprKind::Mod, unwrap(lhs), in mlirAffineModExprGet() 175 return wrap(getAffineBinaryOpExpr(mlir::AffineExprKind::CeilDiv, unwrap(lhs), in mlirAffineCeilDivExprGet() 188 return wrap(unwrap(affineExpr).cast<AffineBinaryOpExpr>().getLHS()); in mlirAffineBinaryOpExprGetLHS() [all …]
|
| H A D | Pass.cpp | 24 return wrap(new PassManager(unwrap(ctx))); in mlirPassManagerCreate() 33 return wrap(static_cast<OpPassManager *>(unwrap(passManager))); in mlirPassManagerGetAsOpPassManager() 38 return wrap(unwrap(passManager)->run(unwrap(module))); in mlirPassManagerRun() 51 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirPassManagerGetNestedUnder() 56 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirOpPassManagerGetNestedUnder() 78 return wrap(mlir::parsePassPipeline(unwrap(pipeline), *unwrap(passManager))); in mlirParsePassPipeline() 112 MlirDialectRegistry cRegistry = wrap(®istry); in getDependentDialects() 122 return unwrap(callbacks.initialize(wrap(ctx), userData)); in initialize() 133 callbacks.run(wrap(getOperation()), wrap(this), userData); in runOnOperation() 161 return wrap(static_cast<mlir::Pass *>(new mlir::ExternalPass( in mlirCreateExternalPass()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Core.cpp | 1017 return wrap(&*I); in LLVMGetFirstUse() 1207 return wrap(&*I); in LLVMGetFirstNamedMetadata() 2464 return wrap( in LLVMGetStringAttributeAtIndex() 2879 return wrap( in LLVMGetCallSiteStringAttribute() 3174 return wrap( in LLVMBuildInvoke() 3544 return wrap( in LLVMBuildLoad() 3639 return wrap( in LLVMBuildFence() 3675 return wrap( in LLVMBuildInBoundsGEP2() 3689 return wrap( in LLVMBuildStructGEP2() 3861 return wrap( in LLVMBuildIntCast2() [all …]
|
| H A D | DebugInfo.cpp | 891 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder() 949 return wrap(unwrap(Builder)->createModule( in LLVMDIBuilderCreateModule() 970 return wrap(unwrap(Builder)->createFunction( in LLVMDIBuilderCreateFunction() 1103 return wrap( in LLVMDIBuilderCreateMacro() 1245 return wrap(unwrap(Builder)->createObjCIVar( in LLVMDIBuilderCreateObjCIVar() 1277 return wrap(unwrap(Builder)->createTypedef( in LLVMDIBuilderCreateTypedef() 1421 return wrap( in LLVMDIBuilderGetOrCreateTypeArray() 1439 return wrap( in LLVMDIBuilderCreateExpression() 1484 return wrap( in LLVMTemporaryMDNode() 1514 return wrap(unwrap(Builder)->insertDeclare( in LLVMDIBuilderInsertDeclareBefore() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcV2CBindings.cpp | 139 Discard(Ctx, wrap(&JD), wrap(OrcV2CAPIHelper::getRawPoolEntryPtr(Name))); in discard() 346 return wrap( in LLVMOrcExecutionSessionGetSymbolStringPool() 356 return wrap( in LLVMOrcExecutionSessionIntern() 413 return wrap(RT.get()); in LLVMOrcJITDylibCreateResourceTracker() 420 return wrap(RT.get()); in LLVMOrcJITDylibGetDefaultResourceTracker() 436 return wrap(TmpRT->remove()); in LLVMOrcResourceTrackerRemove() 647 *Result = wrap(&*JD); in LLVMOrcExecutionSessionCreateJITDylib() 681 return wrap(DG.release()); in LLVMOrcCreateCustomCAPIDefinitionGenerator() 795 return wrap( in LLVMOrcCreateNewThreadSafeModule() 834 return wrap(JTMB.release()); in LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine() [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/ |
| H A D | p6-0x.cpp | 24 template<typename T = func_type_lvalue> struct wrap { struct 30 using func_type_lvalue = wrap<>::val; // expected-note{{in instantiation of}} argument 31 using func_type_lvalue = wrap<func_type_lvalue>::val; 34 using func_type_lvalue_ptr = wrap<>::ptr; 35 using func_type_lvalue_ptr = wrap<func_type_lvalue>::ptr; 36 using func_type_rvalue_ptr = wrap<func_type_rvalue>::ptr; 38 using func_type_lvalue_ref = wrap<>::ref; 39 using func_type_lvalue_ref = wrap<func_type_lvalue>::ref; 40 using func_type_rvalue_ref = wrap<func_type_rvalue>::ref; 69 using func_type_noexcept_true = wrap<decltype(noexcept_true)>; [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | wrap-defined.s | 5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/wrap.s -o %t/wrap.o 6 # RUN: ld.lld -shared --soname=fixed %t/wrap.o -o %t/wrap.so 8 ## GNU ld does not wrap a defined symbol in an object file 10 ## We choose to wrap defined symbols so that LTO, non-LTO and relocatable links 16 # RUN: ld.lld -shared %t/main.o --wrap bar -o %t1.so 18 # RUN: ld.lld %t/main.o %t/wrap.so --wrap bar -o %t1 30 #--- wrap.s
|
| H A D | wrap-shlib-undefined.s | 8 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/wrap.s -o %t/wrap.o 9 # RUN: ld.lld -shared --soname=fixed %t/wrap.o -o %t/wrap.so 12 # RUN: ld.lld -shared %t/main.o %t/call-foo.o --wrap foo -o %t1.so 22 ## --wrap=foo defines __real_foo. 23 # RUN: ld.lld %t/main.o %t/bar.so --wrap=foo -o %t2 26 ## See wrap-plt2.s why __wrap_foo is retained. 33 # RUN: ld.lld -shared %t/main.o --wrap=bar -o %t3.so 42 ## __wrap_bar is defined in %t/wrap.so. 43 # RUN: ld.lld -shared %t/main.o %t/wrap.so --wrap=bar -o %t4.so 52 # RUN: ld.lld %t/main.o %t/wrap.so --wrap bar -o %t1 [all …]
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | wrap-lto-2.ll | 5 ; RUN: llvm-as %t.dir/wrap.ll -o %t.wrap.bc 8 ; RUN: llvm-ar rcs %t.bc.lib %t.wrap.bc %t.other.bc 11 ; RUN: opt -module-summary %t.dir/wrap.ll -o %t.wrap.thin 14 ; RUN: llvm-ar rcs %t.thin.lib %t.wrap.thin %t.other.thin 17 ; RUN: llc %t.dir/wrap.ll -o %t.wrap.obj --filetype=obj 20 ; RUN: llvm-ar rcs %t.obj.lib %t.wrap.obj %t.other.obj 22 ;; This test verifies that -wrap works correctly for inter-module references to 27 …-bc.exe %t.main.bc -libpath:%T %t.bc.lib -entry:entry -subsystem:console -wrap:bar -debug:symtab -… 31 …bj.exe %t.main.bc -libpath:%T %t.obj.lib -entry:entry -subsystem:console -wrap:bar -debug:symtab -… 35 …bc.exe %t.main.obj -libpath:%T %t.bc.lib -entry:entry -subsystem:console -wrap:bar -debug:symtab -… [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.decomp/ |
| H A D | p3.cpp | 179 struct wrap { struct 184 struct std::tuple_size<wrap<ET, GTL, GTR>> { 188 struct std::tuple_element<0, wrap<ET, GTL, GTR>> { 197 { auto [a] = wrap<int, void, int>(); } in test_value_category() 198 { auto &[a] = lvalue<wrap<int, int, void>>(); } in test_value_category() 199 { auto &&[a] = wrap<int, void, int>(); } in test_value_category() 203 { auto [a] = wrap<int, void, int&>(); } in test_value_category() 204 { auto [a] = wrap<int&, void, int&>(); } in test_value_category() 207 { auto [a] = wrap<int, void, int&&>(); } in test_value_category() 209 { auto [a] = wrap<const int&, void, int&&>(); } in test_value_category() [all …]
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | Quant.cpp | 43 return wrap(unwrap(type).cast<quant::QuantizedType>().getExpressedType()); in mlirQuantizedTypeGetExpressedType() 55 return wrap(unwrap(type).cast<quant::QuantizedType>().getStorageType()); in mlirQuantizedTypeGetStorageType() 79 return wrap(quant::QuantizedType::getQuantizedElementType(unwrap(type))); in mlirQuantizedTypeGetQuantizedElementType() 84 return wrap(unwrap(type).cast<quant::QuantizedType>().castFromStorageType( in mlirQuantizedTypeCastFromStorageType() 89 return wrap(quant::QuantizedType::castToStorageType( in mlirQuantizedTypeCastToStorageType() 100 return wrap(quant::QuantizedType::castToExpressedType(unwrap(type))); in mlirQuantizedTypeCastToExpressedType() 105 return wrap( in mlirQuantizedTypeCastExpressedToStorageType() 121 return wrap(quant::AnyQuantizedType::get(flags, unwrap(storageType), in mlirAnyQuantizedTypeGet() 138 return wrap(quant::UniformQuantizedType::get( in mlirUniformQuantizedTypeGet() 168 return wrap(quant::UniformQuantizedPerAxisType::get( in mlirUniformQuantizedPerAxisTypeGet() [all …]
|
| H A D | PDL.cpp | 36 return wrap(pdl::AttributeType::get(unwrap(ctx))); in mlirPDLAttributeTypeGet() 48 return wrap(pdl::OperationType::get(unwrap(ctx))); in mlirPDLOperationTypeGet() 60 return wrap(pdl::RangeType::get(unwrap(elementType))); in mlirPDLRangeTypeGet() 64 return wrap(unwrap(type).cast<pdl::RangeType>().getElementType()); in mlirPDLRangeTypeGetElementType() 76 return wrap(pdl::TypeType::get(unwrap(ctx))); in mlirPDLTypeTypeGet() 88 return wrap(pdl::ValueType::get(unwrap(ctx))); in mlirPDLValueTypeGet()
|
| H A D | LLVM.cpp | 20 return wrap(LLVMPointerType::get(unwrap(pointee), addressSpace)); in MLIR_DEFINE_CAPI_DIALECT_REGISTRATION() 24 return wrap(LLVMVoidType::get(unwrap(ctx))); in mlirLLVMVoidTypeGet() 28 return wrap(LLVMArrayType::get(unwrap(elementType), numElements)); in mlirLLVMArrayTypeGet() 34 return wrap(LLVMFunctionType::get( in mlirLLVMFunctionTypeGet() 43 return wrap(LLVMStructType::getLiteral( in mlirLLVMStructTypeLiteralGet()
|
| /llvm-project-15.0.7/llvm/lib/Remarks/ |
| H A D | Remark.cpp | 41 return wrap(&unwrap(DL)->SourceFilePath); in LLVMRemarkDebugLocGetSourceFilePath() 54 return wrap(&unwrap(Arg)->Key); in LLVMRemarkArgGetKey() 58 return wrap(&unwrap(Arg)->Val); in LLVMRemarkArgGetValue() 64 return wrap(&*Loc); in LLVMRemarkArgGetDebugLoc() 79 return wrap(&unwrap(Remark)->PassName); in LLVMRemarkEntryGetPassName() 84 return wrap(&unwrap(Remark)->RemarkName); in LLVMRemarkEntryGetRemarkName() 89 return wrap(&unwrap(Remark)->FunctionName); in LLVMRemarkEntryGetFunctionName() 95 return wrap(&*Loc); in LLVMRemarkEntryGetDebugLoc()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitReader.cpp | 49 *OutModule = wrap((Module *)nullptr); in LLVMParseBitcodeInContext() 53 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext() 66 *OutModule = wrap((Module *)nullptr); in LLVMParseBitcodeInContext2() 70 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext2() 95 *OutM = wrap((Module *)nullptr); in LLVMGetBitcodeModuleInContext() 99 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext() 115 *OutM = wrap((Module *)nullptr); in LLVMGetBitcodeModuleInContext2() 119 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext2()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | Object.cpp | 38 wrap(const section_iterator *SI) { in wrap() function 48 wrap(const symbol_iterator *SI) { in wrap() function 58 wrap(const relocation_iterator *SI) { in wrap() function 76 return wrap(ObjOrErr.get().release()); in LLVMCreateBinary() 81 return wrap(llvm::MemoryBuffer::getMemBuffer( in LLVMBinaryCopyMemoryBuffer() 149 return wrap(ObjOrErr.get().release()); in LLVMMachOUniversalBinaryCopyObjectForArch() 193 return wrap(Ret); in LLVMCreateObjectFile() 204 return wrap(new section_iterator(SI)); in LLVMGetSections() 237 return wrap(new symbol_iterator(SI)); in LLVMGetSymbols() 285 return wrap(new relocation_iterator(SI)); in LLVMGetRelocations() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 45 return wrap(GenVal); in LLVMCreateGenericValueOfInt() 51 return wrap(GenVal); in LLVMCreateGenericValueOfPointer() 66 return wrap(GenVal); in LLVMCreateGenericValueOfFloat() 111 *OutEE = wrap(EE); in LLVMCreateExecutionEngineForModule() 126 *OutInterp = wrap(Interp); in LLVMCreateInterpreterForModule() 143 *OutJIT = wrap(JIT); in LLVMCreateJITCompilerForModule() 208 *OutJIT = wrap(JIT); in LLVMCreateMCJITCompilerForModule() 250 return wrap(Result); in LLVMRunFunction() 264 *OutMod = wrap(Mod); in LLVMRemoveModule() 271 *OutFn = wrap(F); in LLVMFindFunction() [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/lto/ |
| H A D | wrap-2.ll | 2 ;; This test verifies that --wrap works correctly for inter-module references to 8 ; RUN: llvm-as %S/Inputs/wrap-bar.ll -o %t2.bc 9 ; RUN: ld.lld %t1.bc %t2.bc -shared -o %t.bc-bc.so -wrap=bar 14 ; RUN: llc %S/Inputs/wrap-bar.ll -o %t2.o --filetype=obj 15 ; RUN: ld.lld %t1.bc %t2.o -shared -o %t.bc-o.so -wrap=bar 21 ; RUN: ld.lld %t1.o %t2.bc -shared -o %t.o-bc.so -wrap=bar 27 ; RUN: opt -module-summary %S/Inputs/wrap-bar.ll -o %t2.thin 28 ; RUN: ld.lld %t1.thin %t2.thin -shared -o %t.thin-thin.so -wrap=bar 33 ; RUN: ld.lld %t1.thin %t2.o -shared -o %t.thin-o.so -wrap=bar 38 ; RUN: ld.lld %t1.o %t2.thin -shared -o %t.o-thin.so -wrap=bar
|
| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | Target.cpp | 33 inline LLVMTargetLibraryInfoRef wrap(const TargetLibraryInfoImpl *P) { in wrap() function 48 return wrap(&unwrap(M)->getDataLayout()); in LLVMGetModuleDataLayout() 56 return wrap(new DataLayout(StringRep)); in LLVMCreateTargetData() 86 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType() 90 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS)); in LLVMIntPtrTypeForAS() 94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext() 98 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext()
|
| /llvm-project-15.0.7/compiler-rt/test/profile/Linux/ |
| H A D | instrprof-alloc.test | 1 // RUN: %clang_pgogen -fuse-ld=gold -Wl,-wrap,malloc -Wl,-wrap,calloc -o %t -O3 %S/../Inputs/instr… 4 // RUN: %clang_pgogen -mllvm -vp-static-alloc=false -fuse-ld=gold -Wl,-wrap,malloc -Wl,-wrap,callo…
|
| /llvm-project-15.0.7/llvm/bindings/go/llvm/ |
| H A D | IRBindings.cpp | 25 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata() 29 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen))); in LLVMMDString2() 34 return wrap( in LLVMMDNode2() 70 wrap(Loc.getScope()), in LLVMGoGetCurrentDebugLocation() 71 InlinedAt == nullptr ? nullptr : wrap(InlinedAt->getRawInlinedAt()), in LLVMGoGetCurrentDebugLocation()
|