Home
last modified time | relevance | path

Searched refs:getGlobalContext (Results 1 – 25 of 71) sorted by relevance

123

/external/llvm/unittests/IR/
DTypeBuilderTest.cpp20 …EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, true>::get(getGlobalContext()))); in TEST()
21 …EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, false>::get(getGlobalContext()))… in TEST()
23 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
24 (TypeBuilder<void*, false>::get(getGlobalContext()))); in TEST()
25 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
26 (TypeBuilder<const void*, false>::get(getGlobalContext()))); in TEST()
27 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
28 (TypeBuilder<volatile void*, false>::get(getGlobalContext()))); in TEST()
29 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
31 getGlobalContext()))); in TEST()
[all …]
DLegacyPassManagerTest.cpp291 Module M("test-once", getGlobalContext()); in TEST()
314 Module M("test-rerun", getGlobalContext()); in TEST()
401 Module* mod = new Module("test-mem", getGlobalContext()); in makeLLVMModule()
410 /*Result=*/IntegerType::get(getGlobalContext(), 32), in makeLLVMModule()
415 FuncTy_2_args.push_back(IntegerType::get(getGlobalContext(), 1)); in makeLLVMModule()
417 /*Result=*/Type::getVoidTy(getGlobalContext()), in makeLLVMModule()
468 … BasicBlock* label_entry = BasicBlock::Create(getGlobalContext(), "entry",func_test1,nullptr); in makeLLVMModule()
476 ReturnInst::Create(getGlobalContext(), int32_3, label_entry); in makeLLVMModule()
483 … BasicBlock* label_entry_5 = BasicBlock::Create(getGlobalContext(), "entry",func_test2,nullptr); in makeLLVMModule()
491 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5); in makeLLVMModule()
[all …]
DConstantsTest.cpp24 IntegerType* Int1 = IntegerType::get(getGlobalContext(), 1); in TEST()
105 IntegerType* Int8Ty = Type::getInt8Ty(getGlobalContext()); in TEST()
118 Type *FP128Ty = Type::getFP128Ty(getGlobalContext()); in TEST()
120 IntegerType *Int128Ty = Type::getIntNTy(getGlobalContext(), 128); in TEST()
127 LLVMContext &C(getGlobalContext()); in TEST()
167 std::unique_ptr<Module> M(new Module("MyModule", getGlobalContext())); in TEST()
169 Type *Int64Ty = Type::getInt64Ty(getGlobalContext()); in TEST()
170 Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); in TEST()
171 Type *Int16Ty = Type::getInt16Ty(getGlobalContext()); in TEST()
172 Type *Int1Ty = Type::getInt1Ty(getGlobalContext()); in TEST()
[all …]
DValueHandleTest.cpp27 ConstantV(ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 0)), in ValueHandle()
28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { in ValueHandle()
45 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), WVH->getType()); in TEST_F()
46 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*WVH).getType()); in TEST_F()
200 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), CVH->getType()); in TEST_F()
201 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*CVH).getType()); in TEST_F()
301 Context(&getGlobalContext()) {} in TEST_F()
304 Context(&getGlobalContext()) {} in TEST_F()
308 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
325 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); in TEST_F()
[all …]
DWaymarkTest.cpp23 return ConstantInt::get(Type::getInt8Ty(getGlobalContext()), c); in char2constant()
31 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true); in TEST()
DVerifierTest.cpp25 LLVMContext &C = getGlobalContext(); in TEST()
48 LLVMContext &C = getGlobalContext(); in TEST()
/external/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp31 auto Owner = make_unique<Module>("<main>", getGlobalContext()); in ExecutionEngineTest()
53 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
67 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
80 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
91 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); in TEST_F()
108 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
119 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); in TEST_F()
128 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp508 static IRBuilder<> Builder(getGlobalContext());
518 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
543 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
577 CondV, ConstantFP::get(getGlobalContext(), APFloat(0.0)), "ifcond"); in Codegen()
584 BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
585 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
586 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
617 Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, "iftmp"); in Codegen()
651 BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
660 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp596 static IRBuilder<> Builder(getGlobalContext());
606 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
643 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
685 CondV, ConstantFP::get(getGlobalContext(), APFloat(0.0)), "ifcond"); in Codegen()
692 BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
693 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
694 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
725 Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, "iftmp"); in Codegen()
759 BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
768 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp626 static IRBuilder<> Builder(getGlobalContext());
637 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
642 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
702 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
744 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
751 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
752 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
753 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
781 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
824 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
Dtoy.cpp997 static IRBuilder<> Builder(getGlobalContext());
1008 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
1013 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
1069 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
1108 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
1115 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
1116 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
1117 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
1145 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
1188 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp667 static IRBuilder<> Builder(getGlobalContext());
682 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
687 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
748 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
790 CondV, ConstantFP::get(getGlobalContext(), APFloat(0.0)), "ifcond"); in Codegen()
797 BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
798 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
799 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
830 Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, "iftmp"); in Codegen()
874 BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp611 static IRBuilder<> Builder(getGlobalContext());
622 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
627 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
726 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
733 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
734 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
735 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
763 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
806 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
Dtoy.cpp895 static IRBuilder<> Builder(getGlobalContext());
906 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
911 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
967 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
1006 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
1013 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
1014 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
1015 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
1043 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
1086 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp855 static IRBuilder<> Builder(getGlobalContext());
866 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
871 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
927 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
966 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
973 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
974 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
975 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
1003 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
1046 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp94 static IRBuilder<> Builder(getGlobalContext());
872 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
878 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
943 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
989 CondV, ConstantFP::get(getGlobalContext(), APFloat(0.0)), "ifcond"); in Codegen()
996 BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
997 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
998 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
1029 Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, "iftmp"); in Codegen()
1075 BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp351 static IRBuilder<> Builder(getGlobalContext());
357 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
378 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
406 Type::getDoubleTy(getGlobalContext())); in Codegen()
407 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), in Codegen()
453 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
542 LLVMContext &Context = getGlobalContext(); in main()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp24 LLVMContext &C(getGlobalContext()); in TEST()
54 LLVMContext &C(getGlobalContext()); in TEST()
84 LLVMContext &C(getGlobalContext()); in TEST()
114 LLVMContext &C(getGlobalContext()); in TEST()
145 LLVMContext &C(getGlobalContext()); in TEST()
175 LLVMContext &C(getGlobalContext()); in TEST()
205 LLVMContext &C(getGlobalContext()); in TEST()
235 LLVMContext &C(getGlobalContext()); in TEST()
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp1069 static IRBuilder<> Builder(getGlobalContext());
1080 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
1085 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
1143 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
1186 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
1193 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
1194 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
1195 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
1223 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
1266 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/llvm/include/llvm/
DLinkAllIR.h46 (void)new llvm::Module("", llvm::getGlobalContext()); in ForceVMCoreLinking()
47 (void)new llvm::UnreachableInst(llvm::getGlobalContext()); in ForceVMCoreLinking()
/external/llvm/unittests/Analysis/
DCallGraphTest.cpp47 Module M("", getGlobalContext()); in TEST()
54 Module M("", getGlobalContext()); in TEST()
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/
Dtoy.cpp750 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
810 return C.getBuilder().CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in IRGen()
888 PHINode *PN = C.getBuilder().CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in IRGen()
931 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in IRGen()
957 StepVal = ConstantFP::get(getGlobalContext(), APFloat(1.0)); in IRGen()
972 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in IRGen()
976 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in IRGen()
992 return Constant::getNullValue(Type::getDoubleTy(getGlobalContext())); in IRGen()
1015 InitVal = ConstantFP::get(getGlobalContext(), APFloat(0.0)); in IRGen()
1045 Type::getDoubleTy(getGlobalContext())); in IRGen()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/initial/
Dtoy.cpp750 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
810 return C.getBuilder().CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in IRGen()
888 PHINode *PN = C.getBuilder().CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in IRGen()
931 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in IRGen()
957 StepVal = ConstantFP::get(getGlobalContext(), APFloat(1.0)); in IRGen()
972 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in IRGen()
976 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in IRGen()
992 return Constant::getNullValue(Type::getDoubleTy(getGlobalContext())); in IRGen()
1015 InitVal = ConstantFP::get(getGlobalContext(), APFloat(0.0)); in IRGen()
1045 Type::getDoubleTy(getGlobalContext())); in IRGen()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
Dtoy.cpp750 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
810 return C.getBuilder().CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in IRGen()
888 PHINode *PN = C.getBuilder().CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in IRGen()
931 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in IRGen()
957 StepVal = ConstantFP::get(getGlobalContext(), APFloat(1.0)); in IRGen()
972 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in IRGen()
976 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in IRGen()
992 return Constant::getNullValue(Type::getDoubleTy(getGlobalContext())); in IRGen()
1015 InitVal = ConstantFP::get(getGlobalContext(), APFloat(0.0)); in IRGen()
1045 Type::getDoubleTy(getGlobalContext())); in IRGen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp623 static IRBuilder<> Builder(getGlobalContext());
632 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
657 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
687 Type::getDoubleTy(getGlobalContext())); in Codegen()
689 FunctionType::get(Type::getDoubleTy(getGlobalContext()), Doubles, false); in Codegen()
737 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
842 LLVMContext &Context = getGlobalContext(); in main()

123