Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/LLVM/unittests/Support/
DTypeBuilderTest.cpp21 …EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, true>::get(getGlobalContext()))); in TEST()
22 …EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, false>::get(getGlobalContext()))… in TEST()
24 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
25 (TypeBuilder<void*, false>::get(getGlobalContext()))); in TEST()
26 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
27 (TypeBuilder<const void*, false>::get(getGlobalContext()))); in TEST()
28 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
29 (TypeBuilder<volatile void*, false>::get(getGlobalContext()))); in TEST()
30 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), in TEST()
32 getGlobalContext()))); in TEST()
[all …]
DValueHandleTest.cpp31 ConstantV(ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 0)), in ValueHandle()
32 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { in ValueHandle()
49 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), WVH->getType()); in TEST_F()
50 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*WVH).getType()); in TEST_F()
204 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), CVH->getType()); in TEST_F()
205 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*CVH).getType()); in TEST_F()
299 Context(&getGlobalContext()) {} in TEST_F()
302 Context(&getGlobalContext()) {} in TEST_F()
306 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
323 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); in TEST_F()
[all …]
DIRBuilderTest.cpp25 M.reset(new Module("MyModule", getGlobalContext())); in SetUp()
26 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()), in SetUp()
29 BB = BasicBlock::Create(getGlobalContext(), "", F); in SetUp()
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DPassManagerTest.cpp286 Module M("test-once", getGlobalContext()); in TEST()
310 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,0); in makeLLVMModule()
476 ReturnInst::Create(getGlobalContext(), int32_3, label_entry); in makeLLVMModule()
483 BasicBlock* label_entry_5 = BasicBlock::Create(getGlobalContext(), "entry",func_test2,0); in makeLLVMModule()
491 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5); in makeLLVMModule()
[all …]
DConstantsTest.cpp19 IntegerType* Int1 = IntegerType::get(getGlobalContext(), 1); in TEST()
100 IntegerType* Int8Ty = Type::getInt8Ty(getGlobalContext()); in TEST()
113 Type *FP128Ty = Type::getFP128Ty(getGlobalContext()); in TEST()
115 IntegerType *Int128Ty = Type::getIntNTy(getGlobalContext(), 128); in TEST()
DInstructionsTest.cpp22 LLVMContext &C(getGlobalContext()); in TEST()
46 LLVMContext &C(getGlobalContext()); in TEST()
112 LLVMContext &C(getGlobalContext()); in TEST()
DMetadataTest.cpp83 ConstantInt *CI = ConstantInt::get(getGlobalContext(), APInt(8, 0)); in TEST_F()
111 Constant *C = ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 1); in TEST_F()
112 Instruction *I = new BitCastInst(C, Type::getInt32Ty(getGlobalContext())); in TEST_F()
DVerifierTest.cpp26 LLVMContext &C = getGlobalContext(); in TEST()
48 LLVMContext &C = getGlobalContext(); in TEST()
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/
DExecutionEngineTest.cpp25 : M(new Module("<main>", getGlobalContext())), in ExecutionEngineTest()
44 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
57 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
70 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
81 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); in TEST_F()
98 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
109 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); in TEST_F()
118 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); in TEST_F()
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter5/
Dtoy.cpp457 static IRBuilder<> Builder(getGlobalContext());
464 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
485 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
516 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
523 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
524 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
525 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
553 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
586 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
595 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str()); in Codegen()
[all …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/
Dtoy.cpp542 static IRBuilder<> Builder(getGlobalContext());
549 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
581 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
620 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
627 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
628 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
629 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
657 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
690 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
699 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str()); in Codegen()
[all …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter7/
Dtoy.cpp607 static IRBuilder<> Builder(getGlobalContext());
619 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, in CreateEntryBlockAlloca()
624 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
677 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
716 ConstantFP::get(getGlobalContext(), APFloat(0.0)), in Codegen()
723 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
724 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); in Codegen()
725 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); in Codegen()
753 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, in Codegen()
796 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter3/
Dtoy.cpp349 static IRBuilder<> Builder(getGlobalContext());
355 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
376 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
404 Type::getDoubleTy(getGlobalContext())); in Codegen()
405 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), in Codegen()
451 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
540 LLVMContext &Context = getGlobalContext(); in main()
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter4/
Dtoy.cpp356 static IRBuilder<> Builder(getGlobalContext());
363 return ConstantFP::get(getGlobalContext(), APFloat(Val)); in Codegen()
384 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), in Codegen()
412 Type::getDoubleTy(getGlobalContext())); in Codegen()
413 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), in Codegen()
459 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
559 LLVMContext &Context = getGlobalContext(); in main()
/external/swiftshader/third_party/LLVM/include/llvm/
DLinkAllVMCore.h46 (void)new llvm::Module("", llvm::getGlobalContext()); in ForceVMCoreLinking()
47 (void)new llvm::UnreachableInst(llvm::getGlobalContext()); in ForceVMCoreLinking()
DLLVMContext.h104 extern LLVMContext &getGlobalContext();
/external/swiftshader/third_party/LLVM/tools/llvm-dis/
Dllvm-dis.cpp57 if (MDNode *N = DL.getInlinedAt(getGlobalContext())) { in printDebugLoc()
120 LLVMContext &Context = getGlobalContext(); in main()
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/
DJITEventListenerTest.cpp68 : M(new Module("module", getGlobalContext())), in JITEventListenerTest()
80 TypeBuilder<int32_t(int32_t), false>::get(getGlobalContext()), in buildFunction()
/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DLocal.cpp20 LLVMContext &C(getGlobalContext()); in TEST()
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitReader.cpp24 return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule, in LLVMParseBitcode()
/external/swiftshader/third_party/LLVM/tools/llvm-ranlib/
Dllvm-ranlib.cpp51 LLVMContext &Context = getGlobalContext(); in main()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DPseudoSourceValue.cpp66 Value(Type::getInt8PtrTy(getGlobalContext()), in PseudoSourceValue()
/external/swiftshader/third_party/LLVM/tools/llvm-as/
Dllvm-as.cpp91 LLVMContext &Context = getGlobalContext(); in main()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DLLVMContext.cpp27 LLVMContext& llvm::getGlobalContext() { in getGlobalContext() function in llvm
/external/swiftshader/third_party/LLVM/lib/Target/
DTarget.cpp62 return wrap(unwrap(TD)->getIntPtrType(getGlobalContext())); in LLVMIntPtrType()

12