| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Core.cpp | 55 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 …]
|
| D | DebugInfo.cpp | 868 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr); in unwrapDI() 889 return wrap(new DIBuilder(*unwrap(M), false)); in LLVMCreateDIBuilderDisallowUnresolved() 893 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder() 897 return getDebugMetadataVersionFromModule(*unwrap(M)); in LLVMGetModuleDebugMetadataVersion() 901 return StripDebugInfo(*unwrap(M)); in LLVMStripModuleDebugInfo() 905 delete unwrap(Builder); in LLVMDisposeDIBuilder() 909 unwrap(Builder)->finalize(); in LLVMDIBuilderFinalize() 922 return wrap(unwrap(Builder)->createCompileUnit( in LLVMDIBuilderCreateCompileUnit() 936 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen), in LLVMDIBuilderCreateFile() 946 return wrap(unwrap(Builder)->createModule( in LLVMDIBuilderCreateModule() [all …]
|
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ |
| D | Target.cpp | 29 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 …]
|
| 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() 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | Scalar.cpp | 122 unwrap(PM)->add(createLoopSimplifyCFGPass()); in LLVMAddLoopSimplifyCFGPass() 126 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts() 130 unwrap(PM)->add(createAggressiveDCEPass()); in LLVMAddAggressiveDCEPass() 134 unwrap(PM)->add(createDeadCodeEliminationPass()); in LLVMAddDCEPass() 138 unwrap(PM)->add(createBitTrackingDCEPass()); in LLVMAddBitTrackingDCEPass() 142 unwrap(PM)->add(createAlignmentFromAssumptionsPass()); in LLVMAddAlignmentFromAssumptionsPass() 146 unwrap(PM)->add(createCFGSimplificationPass()); in LLVMAddCFGSimplificationPass() 150 unwrap(PM)->add(createDeadStoreEliminationPass()); in LLVMAddDeadStoreEliminationPass() 154 unwrap(PM)->add(createScalarizerPass()); in LLVMAddScalarizerPass() 158 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| D | OrcV2CBindings.cpp | 167 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate() 172 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate() 263 SM[OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Syms[I].Name))] = in toSymbolMap() 273 JITDylib *JD = unwrap(Pairs[I].JD); in toSymbolDependenceMap() 278 Names.insert(OrcV2CAPIHelper::moveToSymbolStringPtr(unwrap(Sym))); in toSymbolDependenceMap() 290 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter() 297 unwrap(ES)->getExecutorProcessControl().getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool() 301 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries() 307 OrcV2CAPIHelper::moveFromSymbolStringPtr(unwrap(ES)->intern(Name))); in LLVMOrcExecutionSessionIntern() 311 OrcV2CAPIHelper::retainPoolEntry(unwrap(S)); in LLVMOrcRetainSymbolStringPoolEntry() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Object/ |
| D | Object.cpp | 23 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| D | ExecutionEngineBindings.cpp | 44 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Remarks/ |
| 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() 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 …]
|
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | IPO.cpp | 70 initializeIPO(*unwrap(R)); in LLVMInitializeIPO() 74 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass() 78 unwrap(PM)->add(createCalledValuePropagationPass()); in LLVMAddCalledValuePropagationPass() 82 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass() 86 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass() 90 unwrap(PM)->add(createPostOrderFunctionAttrsLegacyPass()); in LLVMAddFunctionAttrsPass() 94 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass() 98 unwrap(PM)->add(llvm::createAlwaysInlinerLegacyPass()); in LLVMAddAlwaysInlinerPass() 102 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass() 106 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass() [all …]
|
| D | PassManagerBuilder.cpp | 1253 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderDispose() 1260 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderSetOptLevel() 1267 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderSetSizeLevel() 1280 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderSetDisableUnrollLoops() 1293 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderUseInlinerWithThreshold() 1300 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderPopulateFunctionPassManager() 1301 legacy::FunctionPassManager *FPM = unwrap<legacy::FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() 1308 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderPopulateModulePassManager() 1309 legacy::PassManagerBase *MPM = unwrap(PM); in LLVMPassManagerBuilderPopulateModulePassManager() 1317 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderPopulateLTOPassManager() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Passes/ |
| 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() 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| 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); \
|
| D | Parallel.h | 319 return unwrap(parallelTransformReduce( in parallelForEachError() 322 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| D | Vectorize.cpp | 33 initializeVectorization(*unwrap(R)); in LLVMInitializeVectorization() 37 unwrap(PM)->add(createLoopVectorizePass()); in LLVMAddLoopVectorizePass() 41 unwrap(PM)->add(createSLPVectorizerPass()); in LLVMAddSLPVectorizePass()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
| D | BitWriter.cpp | 27 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFile() 35 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFD() 47 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToMemoryBuffer()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IRReader/ |
| D | IRReader.cpp | 115 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext() 117 wrap(parseIR(MB->getMemBufferRef(), Diag, *unwrap(ContextRef)).release()); in LLVMParseIRInContext()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/ |
| D | Error.cpp | 156 void LLVMConsumeError(LLVMErrorRef Err) { consumeError(unwrap(Err)); } in LLVMConsumeError() 159 std::string Tmp = toString(unwrap(Err)); in LLVMGetErrorMessage()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| D | Coroutines.cpp | 733 unwrap(PM)->add(createCoroEarlyLegacyPass()); in LLVMAddCoroEarlyPass() 737 unwrap(PM)->add(createCoroSplitLegacyPass()); in LLVMAddCoroSplitPass() 741 unwrap(PM)->add(createCoroElideLegacyPass()); in LLVMAddCoroElidePass() 745 unwrap(PM)->add(createCoroCleanupLegacyPass()); in LLVMAddCoroCleanupPass() 750 PassManagerBuilder *Builder = unwrap(PMB); in LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Target/ |
| D | CodeGenCWrappers.h | 25 inline Optional<CodeModel::Model> unwrap(LLVMCodeModel Model, bool &JIT) { in unwrap() function
|