/netbsd/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Core.cpp | 3156 return wrap(unwrap(B)->CreateCondBr(unwrap(If), unwrap(Then), unwrap(Else))); in LLVMBuildCondBr() 3178 unwrap(B)->CreateInvoke(FnT, unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke() 3187 unwrap<FunctionType>(Ty), unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke2() 3321 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAdd() 3341 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSub() 3361 return wrap(unwrap(B)->CreateMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildMul() 3441 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildOr() 3505 return wrap(unwrap(B)->CreateMemSet(unwrap(Ptr), unwrap(Val), unwrap(Len), in LLVMBuildMemSet() 3868 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast() 3921 return wrap(unwrap(B)->CreateSelect(unwrap(If), unwrap(Then), unwrap(Else), in LLVMBuildSelect() [all …]
|
H A D | DebugInfo.cpp | 1089 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateEnumerationType() 1102 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateUnionType() 1116 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateArrayType() 1127 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateVectorType() 1159 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateStructType() 1333 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateClassType() 1474 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareBefore() 1483 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareAtEnd() 1495 unwrap(Val), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDbgValueBefore() 1507 unwrap(Val), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDbgValueAtEnd() [all …]
|
H A D | Comdat.cpp | 29 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/external/apache2/llvm/dist/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 | 34 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() 189 TargetMachine* TM = unwrap(T); in LLVMTargetMachineEmit() 190 Module* Mod = unwrap(M); in LLVMTargetMachineEmit() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | Scalar.cpp | 125 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts() 157 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass() 161 unwrap(PM)->add(createNewGVNPass()); in LLVMAddNewGVNPass() 181 unwrap(PM)->add(createLoopSinkPass()); in LLVMAddLoopSinkPass() 185 unwrap(PM)->add(createLICMPass()); in LLVMAddLICMPass() 237 unwrap(PM)->add(createSCCPPass()); in LLVMAddSCCPPass() 241 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPass() 245 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPassSSA() 250 unwrap(PM)->add(createSROAPass()); in LLVMAddScalarReplAggregatesPassWithThreshold() 266 unwrap(PM)->add(createVerifierPass()); in LLVMAddVerifierPass() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Object/ |
H A D | Object.cpp | 86 delete unwrap(BR); in LLVMDisposeBinary() 194 delete unwrap(ObjectFile); in LLVMDisposeObjectFile() 205 delete unwrap(SI); in LLVMDisposeSectionIterator() 215 ++(*unwrap(SI)); in LLVMMoveToNextSection() 228 *unwrap(Sect) = *SecOrErr; in LLVMMoveToContainingSection() 239 delete unwrap(SI); in LLVMDisposeSymbolIterator() 249 ++(*unwrap(SI)); in LLVMMoveToNextSymbol() 277 return (*unwrap(SI))->containsSymbol(**unwrap(Sym)); in LLVMGetSectionContainsSymbol() 287 delete unwrap(SI); in LLVMDisposeRelocationIterator() 292 return (*unwrap(SI) == (*unwrap(Section))->relocation_end()) ? 1 : 0; in LLVMIsRelocationIteratorAtEnd() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcV2CBindings.cpp | 379 unwrap(JD)->addGenerator(std::unique_ptr<DefinitionGenerator>(unwrap(DG))); in LLVMOrcJITDylibAddGenerator() 423 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext() 434 delete unwrap(TSM); in LLVMOrcDisposeThreadSafeModule() 473 delete unwrap(JTMB); in LLVMOrcDisposeJITTargetMachineBuilder() 493 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcObjectLayerAddObjectFile() 500 unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)), in LLVMOrcLLJITAddObjectFileWithRT() 526 unwrap(Builder)->setJITTargetMachineBuilder(std::move(*unwrap(JTMB))); in LLVMOrcLLJITBuilderSetJITTargetMachineBuilder() 561 delete unwrap(J); in LLVMOrcDisposeLLJIT() 590 *unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer)))); in LLVMOrcLLJITAddObjectFile() 605 return wrap(unwrap(J)->addIRModule(*unwrap(JD), std::move(*TmpTSM))); in LLVMOrcLLJITAddLLVMIRModule() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/tools/lto/ |
H A D | lto.cpp | 152 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 328 LTOModule *M = unwrap(mod); in lto_module_get_macho_cputype() 375 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module() 379 unwrap(cg)->setModule(std::unique_ptr<LTOModule>(unwrap(mod))); in lto_codegen_set_module() 383 unwrap(cg)->setDebugInfo(debug); in lto_codegen_set_debug_model() 399 unwrap(cg)->setCodePICModel(None); in lto_codegen_set_pic_model() 407 return unwrap(cg)->setCpu(cpu); in lto_codegen_set_cpu() 450 return !unwrap(cg)->optimize(); in lto_codegen_optimize() 595 return unwrap(mod)->isThinLTO(); in lto_module_is_thinlto() 609 return unwrap(cg)->setCpu(cpu); in thinlto_codegen_set_cpu() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngineBindings.cpp | 98 delete unwrap(GenVal); in LLVMDisposeGenericValue() 217 delete unwrap(EE); in LLVMDisposeExecutionEngine() 221 unwrap(EE)->finalizeObject(); in LLVMRunStaticConstructors() 226 unwrap(EE)->finalizeObject(); in LLVMRunStaticDestructors() 236 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain() 250 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction() 258 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule() 263 Module *Mod = unwrap(M); in LLVMRemoveModule() 294 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping() 300 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal() [all …]
|
/netbsd/external/apache2/llvm/dist/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 …]
|
H A D | RemarkParser.cpp | 144 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/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
H A D | IPO.cpp | 69 initializeIPO(*unwrap(R)); in LLVMInitializeIPO() 73 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass() 81 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass() 85 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass() 93 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass() 101 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass() 105 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass() 109 unwrap(PM)->add(createPruneEHPass()); in LLVMAddPruneEHPass() 113 unwrap(PM)->add(createIPSCCPPass()); in LLVMAddIPSCCPPass() 117 unwrap(PM)->add(createMergeFunctionsPass()); in LLVMAddMergeFunctionsPass() [all …]
|
/netbsd/external/apache2/llvm/dist/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 …]
|
H A D | InstrumentationBindings.cpp | 25 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/external/apache2/llvm/dist/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.Coroutines = Coroutines; in LLVMPassBuilderOptionsSetCoroutines() 128 unwrap(Options)->PTO.LicmMssaOptCap = LicmMssaOptCap; in LLVMPassBuilderOptionsSetLicmMssaOptCap() 133 unwrap(Options)->PTO.LicmMssaNoAccForPromotionCap = in LLVMPassBuilderOptionsSetLicmMssaNoAccForPromotionCap() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/ |
H A D | BitReader.cpp | 39 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/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | CBindingWrapping.h | 20 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/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | Analysis.cpp | 92 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/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | Utils.cpp | 52 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/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
H A D | Vectorize.cpp | 33 initializeVectorization(*unwrap(R)); in LLVMInitializeVectorization() 37 unwrap(PM)->add(createLoopVectorizePass()); in LLVMAddLoopVectorizePass() 41 unwrap(PM)->add(createSLPVectorizerPass()); in LLVMAddSLPVectorizePass()
|
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/experimental/ |
H A D | typecons.d | 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 506 Human hy = qy.unwrap!Human; // Quack -> Human 511 Human hz = fx.unwrap!Human; // Flyer -> Human 540 template unwrap(Target) in unwrap() function 543 alias unwrap = .unwrap!(Unqual!Target); in unwrap() local 547 auto unwrap(Source)(inout Source src) in unwrap() 555 auto unwrap(Source)(inout Source src) in unwrap() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/ |
H A D | BitWriter.cpp | 27 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFile() 35 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFD() 47 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToMemoryBuffer()
|
/netbsd/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/ |
H A D | typecons.d | 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 505 Human hy = qy.unwrap!Human; // Quack -> Human 510 Human hz = fx.unwrap!Human; // Flyer -> Human 539 template unwrap(Target) in unwrap() function 542 alias unwrap = .unwrap!(Unqual!Target); in unwrap() local 546 auto unwrap(Source)(inout Source src) in unwrap() 554 auto unwrap(Source)(inout Source src) in unwrap() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/tools/libclang/ |
H A D | BuildSystem.cpp | 56 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()
|