Home
last modified time | relevance | path

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

12345678910>>...12

/external/swiftshader/third_party/LLVM/lib/VMCore/
DCore.cpp46 initializeCore(*unwrap(R)); in LLVMInitializeCore()
67 delete unwrap(C); in LLVMContextDispose()
72 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext()
88 return wrap(new Module(ModuleID, *unwrap(C))); in LLVMModuleCreateWithNameInContext()
92 delete unwrap(M); in LLVMDisposeModule()
97 return unwrap(M)->getDataLayout().c_str(); in LLVMGetDataLayout()
101 unwrap(M)->setDataLayout(Triple); in LLVMSetDataLayout()
106 return unwrap(M)->getTargetTriple().c_str(); in LLVMGetTarget()
110 unwrap(M)->setTargetTriple(Triple); in LLVMSetTarget()
114 unwrap(M)->dump(); in LLVMDumpModule()
[all …]
/external/llvm/lib/IR/
DCore.cpp57 initializeCore(*unwrap(R)); in LLVMInitializeCore()
88 unwrap(C)->setDiagnosticHandler( in LLVMContextSetDiagnosticHandler()
96 unwrap(C)->getDiagnosticHandler()); in LLVMContextGetDiagnosticHandler()
100 return unwrap(C)->getDiagnosticContext(); in LLVMContextGetDiagnosticContext()
107 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle); in LLVMContextSetYieldCallback()
111 delete unwrap(C); in LLVMContextDispose()
116 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext()
136 return wrap(Attribute::get(*unwrap(C), (Attribute::AttrKind)KindID, Val)); in LLVMCreateEnumAttribute()
140 return unwrap(A).getKindAsEnum(); in LLVMGetEnumAttributeKind()
144 auto Attr = unwrap(A); in LLVMGetEnumAttributeValue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DCore.cpp57 initializeCore(*unwrap(R)); in LLVMInitializeCore()
88 unwrap(C)->setDiagnosticHandlerCallBack( in LLVMContextSetDiagnosticHandler()
96 unwrap(C)->getDiagnosticHandlerCallBack()); in LLVMContextGetDiagnosticHandler()
100 return unwrap(C)->getDiagnosticContext(); in LLVMContextGetDiagnosticContext()
107 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle); in LLVMContextSetYieldCallback()
111 delete unwrap(C); in LLVMContextDispose()
116 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext()
136 return wrap(Attribute::get(*unwrap(C), (Attribute::AttrKind)KindID, Val)); in LLVMCreateEnumAttribute()
140 return unwrap(A).getKindAsEnum(); in LLVMGetEnumAttributeKind()
144 auto Attr = unwrap(A); in LLVMGetEnumAttributeValue()
[all …]
DDebugInfo.cpp712 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr); in unwrapDI()
728 return wrap(new DIBuilder(*unwrap(M), false)); in LLVMCreateDIBuilderDisallowUnresolved()
732 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder()
736 return getDebugMetadataVersionFromModule(*unwrap(M)); in LLVMGetModuleDebugMetadataVersion()
740 return StripDebugInfo(*unwrap(M)); in LLVMStripModuleDebugInfo()
744 delete unwrap(Builder); in LLVMDisposeDIBuilder()
748 unwrap(Builder)->finalize(); in LLVMDIBuilderFinalize()
760 return wrap(unwrap(Builder)->createCompileUnit( in LLVMDIBuilderCreateCompileUnit()
773 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen), in LLVMDIBuilderCreateFile()
783 return wrap(unwrap(Builder)->createModule( in LLVMDIBuilderCreateModule()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTarget.cpp30 inline TargetLibraryInfoImpl *unwrap(LLVMTargetLibraryInfoRef P) { in unwrap() function
45 initializeTarget(*unwrap(R)); in LLVMInitializeTarget()
49 return wrap(&unwrap(M)->getDataLayout()); in LLVMGetModuleDataLayout()
53 unwrap(M)->setDataLayout(*unwrap(DL)); in LLVMSetModuleDataLayout()
61 delete unwrap(TD); in LLVMDisposeTargetData()
66 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI))); in LLVMAddTargetLibraryInfo()
70 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
75 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
79 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize()
83 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS()
[all …]
/external/llvm/lib/Target/
DTarget.cpp30 inline TargetLibraryInfoImpl *unwrap(LLVMTargetLibraryInfoRef P) { in unwrap() function
45 initializeTarget(*unwrap(R)); in LLVMInitializeTarget()
49 return wrap(&unwrap(M)->getDataLayout()); in LLVMGetModuleDataLayout()
53 unwrap(M)->setDataLayout(*unwrap(DL)); in LLVMSetModuleDataLayout()
61 delete unwrap(TD); in LLVMDisposeTargetData()
66 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI))); in LLVMAddTargetLibraryInfo()
70 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
75 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
79 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize()
83 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS()
[all …]
DTargetMachineC.cpp35 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function
38 static Target *unwrap(LLVMTargetRef P) { in unwrap() function
57 return wrap(unwrap(T)->getNext()); in LLVMGetNextTarget()
85 return unwrap(T)->getName(); in LLVMGetTargetName()
89 return unwrap(T)->getShortDescription(); in LLVMGetTargetDescription()
93 return unwrap(T)->hasJIT(); in LLVMTargetHasJIT()
97 return unwrap(T)->hasTargetMachine(); in LLVMTargetHasTargetMachine()
101 return unwrap(T)->hasMCAsmBackend(); in LLVMTargetHasAsmBackend()
123 CodeModel::Model CM = unwrap(CodeModel); in LLVMCreateTargetMachine()
142 return wrap(unwrap(T)->createTargetMachine(Triple, CPU, Features, opt, RM, in LLVMCreateTargetMachine()
[all …]
/external/llvm/bindings/go/llvm/
DDIBuilderBindings.cpp25 Module *m = unwrap(mref); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
30 DIBuilder *d = unwrap(dref); in LLVMDIBuilderDestroy()
34 void LLVMDIBuilderFinalize(LLVMDIBuilderRef dref) { unwrap(dref)->finalize(); } in LLVMDIBuilderFinalize()
42 DIBuilder *D = unwrap(Dref); in LLVMDIBuilderCreateCompileUnit()
49 DIBuilder *D = unwrap(Dref); in LLVMDIBuilderCreateFile()
58 DIBuilder *D = unwrap(Dref); in LLVMDIBuilderCreateLexicalBlock()
59 auto *LB = D->createLexicalBlock(unwrap<DILocalScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
60 unwrap<DIFile>(File), Line, Column); in LLVMDIBuilderCreateLexicalBlock()
68 DIBuilder *D = unwrap(Dref); in LLVMDIBuilderCreateLexicalBlockFile()
69 return wrap(D->createLexicalBlockFile(unwrap<DILocalScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
[all …]
DIRBindings.cpp25 Function *Func = unwrap<Function>(Fn); in LLVMAddFunctionAttr2()
36 Function *Func = unwrap<Function>(Fn); in LLVMGetFunctionAttr2()
42 Function *Func = unwrap<Function>(Fn); in LLVMRemoveFunctionAttr2()
53 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
57 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen))); in LLVMMDString2()
63 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()
68 return wrap(MDTuple::getTemporary(*unwrap(C), in LLVMTemporaryMDNode()
69 ArrayRef<Metadata *>(unwrap(MDs), Count)) in LLVMTemporaryMDNode()
75 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand2()
80 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTarget.cpp32 initializeTarget(*unwrap(R)); in LLVMInitializeTarget()
40 unwrap(PM)->add(new TargetData(*unwrap(TD))); in LLVMAddTargetData()
45 unwrap(PM)->add(new TargetLibraryInfo(*unwrap(TLI))); in LLVMAddTargetLibraryInfo()
49 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData()
54 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder()
58 return unwrap(TD)->getPointerSize(); in LLVMPointerSize()
62 return wrap(unwrap(TD)->getIntPtrType(getGlobalContext())); in LLVMIntPtrType()
66 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits()
70 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType()
74 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DScalar.cpp110 unwrap(PM)->add(createLoopSimplifyCFGPass()); in LLVMAddLoopSimplifyCFGPass()
114 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts()
118 unwrap(PM)->add(createAggressiveDCEPass()); in LLVMAddAggressiveDCEPass()
122 unwrap(PM)->add(createBitTrackingDCEPass()); in LLVMAddBitTrackingDCEPass()
126 unwrap(PM)->add(createAlignmentFromAssumptionsPass()); in LLVMAddAlignmentFromAssumptionsPass()
130 unwrap(PM)->add(createCFGSimplificationPass(1, false, false, true)); in LLVMAddCFGSimplificationPass()
134 unwrap(PM)->add(createDeadStoreEliminationPass()); in LLVMAddDeadStoreEliminationPass()
138 unwrap(PM)->add(createScalarizerPass()); in LLVMAddScalarizerPass()
142 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass()
146 unwrap(PM)->add(createNewGVNPass()); in LLVMAddNewGVNPass()
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalar.cpp95 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts()
99 unwrap(PM)->add(createAggressiveDCEPass()); in LLVMAddAggressiveDCEPass()
103 unwrap(PM)->add(createBitTrackingDCEPass()); in LLVMAddBitTrackingDCEPass()
107 unwrap(PM)->add(createAlignmentFromAssumptionsPass()); in LLVMAddAlignmentFromAssumptionsPass()
111 unwrap(PM)->add(createCFGSimplificationPass()); in LLVMAddCFGSimplificationPass()
115 unwrap(PM)->add(createDeadStoreEliminationPass()); in LLVMAddDeadStoreEliminationPass()
119 unwrap(PM)->add(createScalarizerPass()); in LLVMAddScalarizerPass()
123 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass()
127 unwrap(PM)->add(createMergedLoadStoreMotionPass()); in LLVMAddMergedLoadStoreMotionPass()
131 unwrap(PM)->add(createIndVarSimplifyPass()); in LLVMAddIndVarSimplifyPass()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalar.cpp70 initializeScalarOpts(*unwrap(R)); in LLVMInitializeScalarOpts()
74 unwrap(PM)->add(createAggressiveDCEPass()); in LLVMAddAggressiveDCEPass()
78 unwrap(PM)->add(createCFGSimplificationPass()); in LLVMAddCFGSimplificationPass()
82 unwrap(PM)->add(createDeadStoreEliminationPass()); in LLVMAddDeadStoreEliminationPass()
86 unwrap(PM)->add(createGVNPass()); in LLVMAddGVNPass()
90 unwrap(PM)->add(createIndVarSimplifyPass()); in LLVMAddIndVarSimplifyPass()
94 unwrap(PM)->add(createInstructionCombiningPass()); in LLVMAddInstructionCombiningPass()
98 unwrap(PM)->add(createJumpThreadingPass()); in LLVMAddJumpThreadingPass()
102 unwrap(PM)->add(createLICMPass()); in LLVMAddLICMPass()
106 unwrap(PM)->add(createLoopDeletionPass()); in LLVMAddLoopDeletionPass()
[all …]
/external/llvm/lib/Object/
DObject.cpp22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap() function
31 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() function
41 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() function
51 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() function
63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
78 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
83 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
89 delete unwrap(SI); in LLVMDisposeSectionIterator()
94 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
95 return (*unwrap(SI) == OB->getBinary()->section_end()) ? 1 : 0; in LLVMIsSectionIteratorAtEnd()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DObject.cpp22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap() function
31 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() function
41 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() function
51 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() function
63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
78 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
83 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
89 delete unwrap(SI); in LLVMDisposeSectionIterator()
94 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
95 return (*unwrap(SI) == OB->getBinary()->section_end()) ? 1 : 0; in LLVMIsSectionIteratorAtEnd()
[all …]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/
DExecutionEngineBindings.cpp29 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
41 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
55 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
60 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
68 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
72 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
74 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
76 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
85 delete unwrap(GenVal); in LLVMDisposeGenericValue()
94 EngineBuilder builder(unwrap(M)); in LLVMCreateExecutionEngineForModule()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/lto/
Dlto.cpp155 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
298 unwrap(cg)->getContext(), mem, length, Options, StringRef(path)); in lto_module_create_in_codegen_context()
302 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); } in lto_module_dispose()
305 return unwrap(mod)->getTargetTriple().c_str(); in lto_module_get_target_triple()
309 return unwrap(mod)->setTargetTriple(StringRef(triple)); in lto_module_set_target_triple()
313 return unwrap(mod)->getSymbolCount(); in lto_module_get_num_symbols()
317 return unwrap(mod)->getSymbolName(index).data(); in lto_module_get_symbol_name()
322 return unwrap(mod)->getSymbolAttributes(index); in lto_module_get_symbol_attribute()
326 return unwrap(mod)->getLinkerOpts().data(); in lto_module_get_linkeropts()
332 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
[all …]
/external/llvm/tools/lto/
Dlto.cpp147 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
285 unwrap(cg)->getContext(), mem, length, Options, path); in lto_module_create_in_codegen_context()
289 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); } in lto_module_dispose()
292 return unwrap(mod)->getTargetTriple().c_str(); in lto_module_get_target_triple()
296 return unwrap(mod)->setTargetTriple(triple); in lto_module_set_target_triple()
300 return unwrap(mod)->getSymbolCount(); in lto_module_get_num_symbols()
304 return unwrap(mod)->getSymbolName(index); in lto_module_get_symbol_name()
309 return unwrap(mod)->getSymbolAttributes(index); in lto_module_get_symbol_attribute()
313 return unwrap(mod)->getLinkerOpts(); in lto_module_get_linkeropts()
319 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp45 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
57 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
71 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
76 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
84 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
88 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
90 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
92 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
99 delete unwrap(GenVal); in LLVMDisposeGenericValue()
108 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule()
[all …]
/external/llvm/lib/ExecutionEngine/
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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Orc/
DOrcCBindings.cpp17 TargetMachine *TM2(unwrap(TM)); in LLVMOrcCreateInstance()
31 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcGetErrorMsg()
37 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcGetMangledSymbol()
50 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcCreateLazyCompileCallback()
57 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcCreateIndirectStub()
64 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcSetIndirectStubPointer()
73 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcAddEagerlyCompiledIR()
74 std::unique_ptr<Module> M(unwrap(Mod)); in LLVMOrcAddEagerlyCompiledIR()
84 OrcCBindingsStack &J = *unwrap(JITStack); in LLVMOrcAddLazilyCompiledIR()
85 std::unique_ptr<Module> M(unwrap(Mod)); in LLVMOrcAddLazilyCompiledIR()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DIPO.cpp50 initializeIPO(*unwrap(R)); in LLVMInitializeIPO()
54 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass()
58 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass()
62 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass()
66 unwrap(PM)->add(createFunctionAttrsPass()); in LLVMAddFunctionAttrsPass()
70 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass()
74 unwrap(PM)->add(llvm::createAlwaysInlinerPass()); in LLVMAddAlwaysInlinerPass()
78 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass()
82 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass()
86 unwrap(PM)->add(createIPConstantPropagationPass()); in LLVMAddIPConstantPropagationPass()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DIPO.cpp65 initializeIPO(*unwrap(R)); in LLVMInitializeIPO()
69 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass()
73 unwrap(PM)->add(createCalledValuePropagationPass()); in LLVMAddCalledValuePropagationPass()
77 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass()
81 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass()
85 unwrap(PM)->add(createPostOrderFunctionAttrsLegacyPass()); in LLVMAddFunctionAttrsPass()
89 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass()
93 unwrap(PM)->add(llvm::createAlwaysInlinerLegacyPass()); in LLVMAddAlwaysInlinerPass()
97 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass()
101 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass()
[all …]
/external/llvm/lib/Transforms/IPO/
DIPO.cpp61 initializeIPO(*unwrap(R)); in LLVMInitializeIPO()
65 unwrap(PM)->add(createArgumentPromotionPass()); in LLVMAddArgumentPromotionPass()
69 unwrap(PM)->add(createConstantMergePass()); in LLVMAddConstantMergePass()
73 unwrap(PM)->add(createDeadArgEliminationPass()); in LLVMAddDeadArgEliminationPass()
77 unwrap(PM)->add(createPostOrderFunctionAttrsLegacyPass()); in LLVMAddFunctionAttrsPass()
81 unwrap(PM)->add(createFunctionInliningPass()); in LLVMAddFunctionInliningPass()
85 unwrap(PM)->add(llvm::createAlwaysInlinerPass()); in LLVMAddAlwaysInlinerPass()
89 unwrap(PM)->add(createGlobalDCEPass()); in LLVMAddGlobalDCEPass()
93 unwrap(PM)->add(createGlobalOptimizerPass()); in LLVMAddGlobalOptimizerPass()
97 unwrap(PM)->add(createIPConstantPropagationPass()); in LLVMAddIPConstantPropagationPass()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/go/llvm/
DIRBindings.cpp26 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
30 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen))); in LLVMMDString2()
36 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()
41 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand2()
46 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2()
50 MDNode *N = MD ? unwrap<MDNode>(MD) : nullptr; in LLVMSetMetadata2()
51 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
57 unwrap(Bref)->SetCurrentDebugLocation( in LLVMSetCurrentDebugLocation2()
58 DebugLoc::get(Line, Col, Scope ? unwrap<MDNode>(Scope) : nullptr, in LLVMSetCurrentDebugLocation2()
59 InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); in LLVMSetCurrentDebugLocation2()
[all …]

12345678910>>...12