Home
last modified time | relevance | path

Searched refs:unwrap (Results 1 – 25 of 100) sorted by relevance

1234

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DCore.cpp55 initializeCore(*unwrap(R)); in LLVMInitializeCore()
86 unwrap(C)->setDiagnosticHandlerCallBack( in LLVMContextSetDiagnosticHandler()
94 unwrap(C)->getDiagnosticHandlerCallBack()); in LLVMContextGetDiagnosticHandler()
98 return unwrap(C)->getDiagnosticContext(); in LLVMContextGetDiagnosticContext()
105 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle); in LLVMContextSetYieldCallback()
109 return unwrap(C)->shouldDiscardValueNames(); in LLVMContextShouldDiscardValueNames()
113 unwrap(C)->setDiscardValueNames(Discard); in LLVMContextSetDiscardValueNames()
117 delete unwrap(C); in LLVMContextDispose()
122 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext()
139 auto &Ctx = *unwrap(C); in LLVMCreateEnumAttribute()
[all …]
H A DDebugInfo.cpp832 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr); in unwrapDI()
853 return wrap(new DIBuilder(*unwrap(M), false)); in LLVMCreateDIBuilderDisallowUnresolved()
857 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder()
861 return getDebugMetadataVersionFromModule(*unwrap(M)); in LLVMGetModuleDebugMetadataVersion()
865 return StripDebugInfo(*unwrap(M)); in LLVMStripModuleDebugInfo()
869 delete unwrap(Builder); in LLVMDisposeDIBuilder()
873 unwrap(Builder)->finalize(); in LLVMDIBuilderFinalize()
886 return wrap(unwrap(Builder)->createCompileUnit( in LLVMDIBuilderCreateCompileUnit()
900 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen), in LLVMDIBuilderCreateFile()
910 return wrap(unwrap(Builder)->createModule( in LLVMDIBuilderCreateModule()
[all …]
H A DComdat.cpp29 return wrap(unwrap(M)->getOrInsertComdat(Name)); in LLVMGetOrInsertComdat()
33 GlobalObject *G = unwrap<GlobalObject>(V); in LLVMGetComdat()
38 GlobalObject *G = unwrap<GlobalObject>(V); in LLVMSetComdat()
39 G->setComdat(unwrap(C)); in LLVMSetComdat()
43 switch (unwrap(C)->getSelectionKind()) { in LLVMGetComdatSelectionKind()
59 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/
H A DTarget.cpp29 inline TargetLibraryInfoImpl *unwrap(LLVMTargetLibraryInfoRef P) { in unwrap() function
44 initializeTarget(*unwrap(R)); in LLVMInitializeTarget()
48 return wrap(&unwrap(M)->getDataLayout()); in LLVMGetModuleDataLayout()
52 unwrap(M)->setDataLayout(*unwrap(DL)); in LLVMSetModuleDataLayout()
60 delete unwrap(TD); in LLVMDisposeTargetData()
65 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI))); in LLVMAddTargetLibraryInfo()
69 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
74 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
78 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize()
82 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS()
[all …]
H A DTargetMachineC.cpp34 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function
37 static Target *unwrap(LLVMTargetRef P) { in unwrap() function
56 return wrap(unwrap(T)->getNext()); in LLVMGetNextTarget()
83 return unwrap(T)->getName(); in LLVMGetTargetName()
87 return unwrap(T)->getShortDescription(); in LLVMGetTargetDescription()
91 return unwrap(T)->hasJIT(); in LLVMTargetHasJIT()
95 return unwrap(T)->hasTargetMachine(); in LLVMTargetHasTargetMachine()
99 return unwrap(T)->hasMCAsmBackend(); in LLVMTargetHasAsmBackend()
131 Optional<CodeModel::Model> CM = unwrap(CodeModel, JIT); in LLVMCreateTargetMachine()
150 return wrap(unwrap(T)->createTargetMachine(Triple, CPU, Features, opt, RM, CM, in LLVMCreateTargetMachine()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DScalar.cpp121 unwrap(PM)->add(createLoopSimplifyCFGPass()); in LLVMAddLoopSimplifyCFGPass()
125 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts()
129 unwrap(PM)->add(createAggressiveDCEPass()); in LLVMAddAggressiveDCEPass()
133 unwrap(PM)->add(createDeadCodeEliminationPass()); in LLVMAddDCEPass()
137 unwrap(PM)->add(createBitTrackingDCEPass()); in LLVMAddBitTrackingDCEPass()
141 unwrap(PM)->add(createAlignmentFromAssumptionsPass()); in LLVMAddAlignmentFromAssumptionsPass()
145 unwrap(PM)->add(createCFGSimplificationPass()); in LLVMAddCFGSimplificationPass()
149 unwrap(PM)->add(createDeadStoreEliminationPass()); in LLVMAddDeadStoreEliminationPass()
153 unwrap(PM)->add(createScalarizerPass()); in LLVMAddScalarizerPass()
157 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DObject.cpp23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap() function
32 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() function
42 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() function
52 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() function
67 auto maybeContext = Context ? unwrap(Context) : nullptr; in LLVMCreateBinary()
69 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext)); in LLVMCreateBinary()
79 auto Buf = unwrap(BR)->getMemoryBufferRef(); in LLVMBinaryCopyMemoryBuffer()
86 delete unwrap(BR); in LLVMDisposeBinary()
132 return BinaryTypeMapper::mapBinaryTypeToLLVMBinaryType(unwrap(BR)->getType()); in LLVMBinaryGetType()
139 auto universal = cast<MachOUniversalBinary>(unwrap(BR)); in LLVMMachOUniversalBinaryCopyObjectForArch()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DOrcV2CBindings.cpp159 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate()
164 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate()
240 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter()
246 return wrap(unwrap(ES)->getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool()
250 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries()
256 OrcV2CAPIHelper::moveFromSymbolStringPtr(unwrap(ES)->intern(Name))); in LLVMOrcExecutionSessionIntern()
260 OrcV2CAPIHelper::retainPoolEntry(unwrap(S)); in LLVMOrcRetainSymbolStringPoolEntry()
264 OrcV2CAPIHelper::releasePoolEntry(unwrap(S)); in LLVMOrcReleaseSymbolStringPoolEntry()
268 return unwrap(S)->getKey().data(); in LLVMOrcSymbolStringPoolEntryStr()
273 auto RT = unwrap(JD)->createResourceTracker(); in LLVMOrcJITDylibCreateResourceTracker()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/lto/
H A Dlto.cpp152 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
294 unwrap(cg)->getContext(), mem, length, Options, StringRef(path)); in lto_module_create_in_codegen_context()
298 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); } in lto_module_dispose()
301 return unwrap(mod)->getTargetTriple().c_str(); in lto_module_get_target_triple()
305 return unwrap(mod)->setTargetTriple(StringRef(triple)); in lto_module_set_target_triple()
309 return unwrap(mod)->getSymbolCount(); in lto_module_get_num_symbols()
313 return unwrap(mod)->getSymbolName(index).data(); in lto_module_get_symbol_name()
318 return unwrap(mod)->getSymbolAttributes(index); in lto_module_get_symbol_attribute()
322 return unwrap(mod)->getLinkerOpts().data(); in lto_module_get_linkeropts()
328 LTOModule *M = unwrap(mod); in lto_module_get_macho_cputype()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
56 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
70 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
75 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
83 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
87 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
89 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
91 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
98 delete unwrap(GenVal); in LLVMDisposeGenericValue()
107 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Remarks/
H A DRemark.cpp32 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()
63 if (const Optional<RemarkLocation> &Loc = unwrap(Arg)->Loc) in LLVMRemarkArgGetDebugLoc()
69 delete unwrap(Remark); in LLVMRemarkEntryDispose()
74 return static_cast<LLVMRemarkType>(unwrap(Remark)->RemarkType); in LLVMRemarkEntryGetType()
[all …]
H A DRemarkParser.cpp144 CParser &TheCParser = *unwrap(Parser); in LLVMRemarkParserGetNext()
165 return unwrap(Parser)->hasError(); in LLVMRemarkParserHasError()
170 return unwrap(Parser)->getMessage(); in LLVMRemarkParserGetErrorMessage()
174 delete unwrap(Parser); in LLVMRemarkParserDispose()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DIPO.cpp69 initializeIPO(*unwrap(R)); in LLVMInitializeIPO()
73 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass()
77 unwrap(PM)->add(createCalledValuePropagationPass()); in LLVMAddCalledValuePropagationPass()
81 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass()
85 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass()
89 unwrap(PM)->add(createPostOrderFunctionAttrsLegacyPass()); in LLVMAddFunctionAttrsPass()
93 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass()
97 unwrap(PM)->add(llvm::createAlwaysInlinerLegacyPass()); in LLVMAddAlwaysInlinerPass()
101 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass()
105 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Passes/
H A DPassBuilderBindings.cpp39 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()
98 unwrap(Options)->PTO.LoopInterleaving = LoopInterleaving; in LLVMPassBuilderOptionsSetLoopInterleaving()
103 unwrap(Options)->PTO.LoopVectorization = LoopVectorization; in LLVMPassBuilderOptionsSetLoopVectorization()
108 unwrap(Options)->PTO.SLPVectorization = SLPVectorization; in LLVMPassBuilderOptionsSetSLPVectorization()
113 unwrap(Options)->PTO.LoopUnrolling = LoopUnrolling; in LLVMPassBuilderOptionsSetLoopUnrolling()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/llvm/
H A DIRBindings.cpp25 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
29 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen))); in LLVMMDString2()
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()
[all …]
H A DInstrumentationBindings.cpp25 unwrap(PM)->add(createAddressSanitizerFunctionPass()); in LLVMAddAddressSanitizerFunctionPass()
29 unwrap(PM)->add(createModuleAddressSanitizerLegacyPassPass()); in LLVMAddAddressSanitizerModulePass()
33 unwrap(PM)->add(createThreadSanitizerLegacyPassPass()); in LLVMAddThreadSanitizerPass()
37 unwrap(PM)->add(createMemorySanitizerLegacyPassPass()); in LLVMAddMemorySanitizerLegacyPassPass()
47 unwrap(PM)->add(createDataFlowSanitizerLegacyPassPass(ABIListFilesVec)); in LLVMAddDataFlowSanitizerPass()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitReader.cpp39 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext()
40 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMParseBitcodeInContext()
61 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2()
62 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMParseBitcodeInContext2()
81 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMGetBitcodeModuleInContext()
82 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext()
108 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMGetBitcodeModuleInContext2()
109 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext2()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DCBindingWrapping.h20 inline ty *unwrap(ref P) { \
32 inline T *unwrap(ref P) { \
33 return cast<T>(unwrap(P)); \
40 inline T *unwrap(ref P) { \
41 T *Q = (T*)unwrap(P); \
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DAnalysis.cpp92 initializeAnalysis(*unwrap(R)); in LLVMInitializeAnalysis()
96 initializeAnalysis(*unwrap(R)); in LLVMInitializeIPA()
105 LLVMBool Result = verifyModule(*unwrap(M), OutMessages ? &MsgsOS : DebugOS); in LLVMVerifyModule()
122 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() in LLVMVerifyFunction()
132 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFG()
137 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFGOnly()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DUtils.cpp52 initializeTransformUtils(*unwrap(R)); in LLVMInitializeTransformUtils()
56 unwrap(PM)->add(createLowerSwitchPass()); in LLVMAddLowerSwitchPass()
60 unwrap(PM)->add(createPromoteMemoryToRegisterPass()); in LLVMAddPromoteMemoryToRegisterPass()
64 unwrap(PM)->add(createAddDiscriminatorsPass()); in LLVMAddAddDiscriminatorsPass()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVectorize.cpp33 initializeVectorization(*unwrap(R)); in LLVMInitializeVectorization()
37 unwrap(PM)->add(createLoopVectorizePass()); in LLVMAddLoopVectorizePass()
41 unwrap(PM)->add(createSLPVectorizerPass()); in LLVMAddSLPVectorizePass()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/
H A Dtypecons.d433 public inout(Target) unwrap(Target, Source)(inout Source src); in version()
482 Duck d2 = qd.unwrap!Duck;
491 Human h2 = qh.unwrap!Human;
492 HumanStructure hs2 = qhs.unwrap!HumanStructure;
504 Quack qy = fx.unwrap!Quack; // Flyer -> Quack
505 Quack qys = fxs.unwrap!Quack; // Flyer -> Quack
506 Human hy = qy.unwrap!Human; // Quack -> Human
507 HumanStructure hys = qys.unwrap!HumanStructure; // Quack -> HumanStructure
511 Human hz = fx.unwrap!Human; // Flyer -> Human
512 HumanStructure hzs = fxs.unwrap!HumanStructure; // Flyer -> HumanStructure
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
H A DBitWriter.cpp27 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFile()
35 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFD()
47 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToMemoryBuffer()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/
H A Dtypecons.d432 public inout(Target) unwrap(Target, Source)(inout Source src); in version()
481 Duck d2 = qd.unwrap!Duck;
490 Human h2 = qh.unwrap!Human;
491 HumanStructure hs2 = qhs.unwrap!HumanStructure;
503 Quack qy = fx.unwrap!Quack; // Flyer -> Quack
504 Quack qys = fxs.unwrap!Quack; // Flyer -> Quack
505 Human hy = qy.unwrap!Human; // Quack -> Human
506 HumanStructure hys = qys.unwrap!HumanStructure; // Quack -> HumanStructure
510 Human hz = fx.unwrap!Human; // Flyer -> Human
511 HumanStructure hzs = fxs.unwrap!HumanStructure; // Flyer -> HumanStructure
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DBuildSystem.cpp56 unwrap(VFO)->addFileMapping(virtualPath, realPath); in clang_VirtualFileOverlay_addFileMapping()
65 unwrap(VFO)->setCaseSensitivity(caseSensitive); in clang_VirtualFileOverlay_setCaseSensitivity()
78 unwrap(VFO)->write(OS); in clang_VirtualFileOverlay_writeToBuffer()
92 delete unwrap(VFO); in clang_VirtualFileOverlay_dispose()

1234