Searched refs:unwrap (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp29 inline TargetLibraryInfoImpl *unwrap(LLVMTargetLibraryInfoRef P) { function
44 initializeTarget(*unwrap(R));
48 return wrap(&unwrap(M)->getDataLayout());
52 unwrap(M)->setDataLayout(*unwrap(DL));
60 delete unwrap(TD);
65 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI)));
69 std::string StringRep = unwrap(TD)->getStringRepresentation();
74 return unwrap(T
[all...]
H A DTargetMachineC.cpp34 static TargetMachine *unwrap(LLVMTargetMachineRef P) { function
37 static Target *unwrap(LLVMTargetRef P) { function
56 return wrap(unwrap(T)->getNext());
83 return unwrap(T)->getName();
87 return unwrap(T)->getShortDescription();
91 return unwrap(T)->hasJIT();
95 return unwrap(T)->hasTargetMachine();
99 return unwrap(T)->hasMCAsmBackend();
131 Optional<CodeModel::Model> CM = unwrap(CodeModel, JIT);
150 return wrap(unwrap(
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalar.cpp118 unwrap(PM)->add(createLoopSimplifyCFGPass());
122 initializeScalarOpts(*unwrap(R));
126 unwrap(PM)->add(createAggressiveDCEPass());
130 unwrap(PM)->add(createDeadCodeEliminationPass());
134 unwrap(PM)->add(createBitTrackingDCEPass());
138 unwrap(PM)->add(createAlignmentFromAssumptionsPass());
142 unwrap(PM)->add(createCFGSimplificationPass(1, false, false, true));
146 unwrap(PM)->add(createDeadStoreEliminationPass());
150 unwrap(PM)->add(createScalarizerPass());
154 unwrap(P
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp56 initializeCore(*unwrap(R));
87 unwrap(C)->setDiagnosticHandlerCallBack(
95 unwrap(C)->getDiagnosticHandlerCallBack());
99 return unwrap(C)->getDiagnosticContext();
106 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle);
110 return unwrap(C)->shouldDiscardValueNames();
114 unwrap(C)->setDiscardValueNames(Discard);
118 delete unwrap(C);
123 return unwrap(C)->getMDKindID(StringRef(Name, SLen));
140 auto &Ctx = *unwrap(
[all...]
H A DComdat.cpp29 return wrap(unwrap(M)->getOrInsertComdat(Name));
33 GlobalObject *G = unwrap<GlobalObject>(V);
38 GlobalObject *G = unwrap<GlobalObject>(V);
39 G->setComdat(unwrap(C));
43 switch (unwrap(C)->getSelectionKind()) {
59 Comdat *Cd = unwrap(C);
H A DDebugInfo.cpp715 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr);
736 return wrap(new DIBuilder(*unwrap(M), false));
740 return wrap(new DIBuilder(*unwrap(M)));
744 return getDebugMetadataVersionFromModule(*unwrap(M));
748 return StripDebugInfo(*unwrap(M));
752 delete unwrap(Builder);
756 unwrap(Builder)->finalize();
769 return wrap(unwrap(Builder)->createCompileUnit(
783 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen),
793 return wrap(unwrap(Builde
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DIPO.cpp68 initializeIPO(*unwrap(R));
72 unwrap(PM)->add(createArgumentPromotionPass());
76 unwrap(PM)->add(createCalledValuePropagationPass());
80 unwrap(PM)->add(createConstantMergePass());
84 unwrap(PM)->add(createDeadArgEliminationPass());
88 unwrap(PM)->add(createPostOrderFunctionAttrsLegacyPass());
92 unwrap(PM)->add(createFunctionInliningPass());
96 unwrap(PM)->add(llvm::createAlwaysInlinerLegacyPass());
100 unwrap(PM)->add(createGlobalDCEPass());
104 unwrap(P
[all...]
H A DPassManagerBuilder.cpp1153 PassManagerBuilder *Builder = unwrap(PMB);
1160 PassManagerBuilder *Builder = unwrap(PMB);
1167 PassManagerBuilder *Builder = unwrap(PMB);
1180 PassManagerBuilder *Builder = unwrap(PMB);
1193 PassManagerBuilder *Builder = unwrap(PMB);
1200 PassManagerBuilder *Builder = unwrap(PMB);
1201 legacy::FunctionPassManager *FPM = unwrap<legacy::FunctionPassManager>(PM);
1208 PassManagerBuilder *Builder = unwrap(PMB);
1209 legacy::PassManagerBase *MPM = unwrap(PM);
1217 PassManagerBuilder *Builder = unwrap(PM
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Remarks/
H A DRemark.cpp32 return unwrap(String)->data();
36 return unwrap(String)->size();
41 return wrap(&unwrap(DL)->SourceFilePath);
45 return unwrap(DL)->SourceLine;
50 return unwrap(DL)->SourceColumn;
54 return wrap(&unwrap(Arg)->Key);
58 return wrap(&unwrap(Arg)->Val);
63 if (const Optional<RemarkLocation> &Loc = unwrap(Arg)->Loc)
69 delete unwrap(Remark);
74 return static_cast<LLVMRemarkType>(unwrap(Remar
[all...]
H A DRemarkParser.cpp144 CParser &TheCParser = *unwrap(Parser);
165 return unwrap(Parser)->hasError();
170 return unwrap(Parser)->getMessage();
174 delete unwrap(Parser);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { function
32 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { function
42 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { function
52 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { function
67 auto maybeContext = Context ? unwrap(Context) : nullptr;
69 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext));
79 auto Buf = unwrap(BR)->getMemoryBufferRef();
86 delete unwrap(BR);
132 return BinaryTypeMapper::mapBinaryTypeToLLVMBinaryType(unwrap(BR)->getType());
139 auto universal = cast<MachOUniversalBinary>(unwrap(B
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorize.cpp33 initializeVectorization(*unwrap(R));
37 unwrap(PM)->add(createLoopVectorizePass());
41 unwrap(PM)->add(createSLPVectorizerPass());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcCBindings.cpp16 TargetMachine *TM2(unwrap(TM));
30 OrcCBindingsStack &J = *unwrap(JITStack);
36 OrcCBindingsStack &J = *unwrap(JITStack);
47 OrcCBindingsStack &J = *unwrap(JITStack);
58 OrcCBindingsStack &J = *unwrap(JITStack);
65 OrcCBindingsStack &J = *unwrap(JITStack);
74 OrcCBindingsStack &J = *unwrap(JITStack);
75 std::unique_ptr<Module> M(unwrap(Mod));
89 OrcCBindingsStack &J = *unwrap(JITStack);
90 std::unique_ptr<Module> M(unwrap(Mo
[all...]
H A DOrcV2CBindings.cpp64 OrcV2CAPIHelper::releaseSymbolStringPtr(unwrap(ES)->intern(Name)));
68 OrcV2CAPIHelper::releasePoolEntry(unwrap(S));
73 delete unwrap(DG);
78 unwrap(JD)->addGenerator(
79 std::unique_ptr<JITDylib::DefinitionGenerator>(unwrap(DG)));
113 return wrap(unwrap(TSCtx)->getContext());
117 delete unwrap(TSCtx);
124 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx)));
128 delete unwrap(TS
[all...]
/freebsd-13-stable/contrib/llvm-project/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); \
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DUtils.cpp53 initializeTransformUtils(*unwrap(R));
57 unwrap(PM)->add(createLowerSwitchPass());
61 unwrap(PM)->add(createPromoteMemoryToRegisterPass());
65 unwrap(PM)->add(createAddDiscriminatorsPass());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned);
56 switch (unwrap(TyRef)->getTypeID()) {
70 return unwrap(GenValRef)->IntVal.getBitWidth();
75 GenericValue *GenVal = unwrap(GenValRef);
83 return unwrap(GenVal)->PointerVal;
87 switch (unwrap(TyRef)->getTypeID()) {
89 return unwrap(GenVal)->FloatVal;
91 return unwrap(GenVal)->DoubleVal;
98 delete unwrap(GenVal);
107 EngineBuilder builder(std::unique_ptr<Module>(unwrap(
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitWriter.cpp27 WriteBitcodeToFile(*unwrap(M), OS);
35 WriteBitcodeToFile(*unwrap(M), OS);
47 WriteBitcodeToFile(*unwrap(M), OS);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp38 initializeObjCARCOpts(*unwrap(R));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitReader.cpp39 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef();
40 LLVMContext &Ctx = *unwrap(ContextRef);
61 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef();
62 LLVMContext &Ctx = *unwrap(ContextRef);
81 LLVMContext &Ctx = *unwrap(ContextRef);
82 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf));
108 LLVMContext &Ctx = *unwrap(ContextRef);
109 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DAnalysis.cpp91 initializeAnalysis(*unwrap(R));
95 initializeAnalysis(*unwrap(R));
104 LLVMBool Result = verifyModule(*unwrap(M), OutMessages ? &MsgsOS : DebugOS);
121 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs()
131 Function *F = unwrap<Function>(Fn);
136 Function *F = unwrap<Function>(Fn);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Target/
H A DCodeGenCWrappers.h25 inline Optional<CodeModel::Model> unwrap(LLVMCodeModel Model, bool &JIT) { function in namespace:llvm
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IRReader/
H A DIRReader.cpp115 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf));
117 wrap(parseIR(MB->getMemBufferRef(), Diag, *unwrap(ContextRef)).release());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DError.cpp156 void LLVMConsumeError(LLVMErrorRef Err) { consumeError(unwrap(Err)); }
159 std::string Tmp = toString(unwrap(Err));
/freebsd-13-stable/kerberos5/lib/libgssapi_krb5/
H A DMakefile63 unwrap.c \

Completed in 226 milliseconds

123