/external/llvm/unittests/IR/ |
TypeBuilderTest.cpp | 20 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, true>::get(getGlobalContext()))); 21 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, false>::get(getGlobalContext()))); 23 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), 24 (TypeBuilder<void*, false>::get(getGlobalContext()))); 25 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), 26 (TypeBuilder<const void*, false>::get(getGlobalContext()))); 27 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()), 28 (TypeBuilder<volatile void*, false>::get(getGlobalContext()))); [all...] |
LegacyPassManagerTest.cpp | 297 Module M("test-once", getGlobalContext()); 321 Module M("test-rerun", getGlobalContext()); 412 Module* mod = new Module("test-mem", getGlobalContext()); 421 /*Result=*/IntegerType::get(getGlobalContext(), 32), 426 FuncTy_2_args.push_back(IntegerType::get(getGlobalContext(), 1)); 428 /*Result=*/Type::getVoidTy(getGlobalContext()), 479 BasicBlock* label_entry = BasicBlock::Create(getGlobalContext(), "entry",func_test1,nullptr); 487 ReturnInst::Create(getGlobalContext(), int32_3, label_entry); 494 BasicBlock* label_entry_5 = BasicBlock::Create(getGlobalContext(), "entry",func_test2,nullptr); 502 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5) [all...] |
VerifierTest.cpp | 25 LLVMContext &C = getGlobalContext(); 48 LLVMContext &C = getGlobalContext();
|
WaymarkTest.cpp | 23 return ConstantInt::get(Type::getInt8Ty(getGlobalContext()), c); 31 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true);
|
ConstantsTest.cpp | 22 IntegerType* Int1 = IntegerType::get(getGlobalContext(), 1); 103 IntegerType* Int8Ty = Type::getInt8Ty(getGlobalContext()); 116 Type *FP128Ty = Type::getFP128Ty(getGlobalContext()); 118 IntegerType *Int128Ty = Type::getIntNTy(getGlobalContext(), 128); 125 LLVMContext &C(getGlobalContext()); 165 std::unique_ptr<Module> M(new Module("MyModule", getGlobalContext())); 167 Type *Int64Ty = Type::getInt64Ty(getGlobalContext()); 168 Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); 169 Type *Int16Ty = Type::getInt16Ty(getGlobalContext()); 170 Type *Int1Ty = Type::getInt1Ty(getGlobalContext()); [all...] |
ValueHandleTest.cpp | 27 ConstantV(ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 0)), 28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { 45 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), WVH->getType()); 46 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*WVH).getType()); 200 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), CVH->getType()); 201 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*CVH).getType()); 295 Context(&getGlobalContext()) {} 298 Context(&getGlobalContext()) {} 302 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); 319 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); [all...] |
MetadataTest.cpp | 83 ConstantInt *CI = ConstantInt::get(getGlobalContext(), APInt(8, 0)); 118 Constant *C = ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 1); 119 Instruction *I = new BitCastInst(C, Type::getInt32Ty(getGlobalContext()));
|
ValueTest.cpp | 47 LLVMContext &Ctx = getGlobalContext();
|
/external/llvm/include/llvm/ |
LinkAllIR.h | 46 (void)new llvm::Module("", llvm::getGlobalContext()); 47 (void)new llvm::UnreachableInst(llvm::getGlobalContext());
|
/external/llvm/unittests/ExecutionEngine/ |
ExecutionEngineTest.cpp | 24 : M(new Module("<main>", getGlobalContext())), Error(""), 45 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); 58 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); 71 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); 82 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); 99 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1"); 110 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2"); 119 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
|
/external/llvm/unittests/Bitcode/ |
BitReaderTest.cpp | 26 Module* Mod = new Module("test-mem", getGlobalContext()); 58 getLazyBitcodeModule(Buffer, getGlobalContext());
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 459 static IRBuilder<> Builder(getGlobalContext()); 466 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 487 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 518 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 525 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 526 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 527 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 555 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 588 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); 597 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str()) [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 544 static IRBuilder<> Builder(getGlobalContext()); 551 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 583 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 622 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 629 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 630 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 631 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 659 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 692 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); 701 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str()) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
llvm_wrapper.cpp | 17 M.reset(llvm::ParseIR(buffer, Err, llvm::getGlobalContext()));
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
loader.cpp | 27 LLVMContext &Context = getGlobalContext();
|
/external/mesa3d/src/gallium/drivers/r600/ |
llvm_wrapper.cpp | 17 M.reset(llvm::ParseIR(buffer, Err, llvm::getGlobalContext()));
|
/external/mesa3d/src/gallium/drivers/radeon/ |
loader.cpp | 27 LLVMContext &Context = getGlobalContext();
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 351 static IRBuilder<> Builder(getGlobalContext()); 357 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 378 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 406 Type::getDoubleTy(getGlobalContext())); 407 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), 453 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); 542 LLVMContext &Context = getGlobalContext();
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
toy-jit.cpp | 627 static IRBuilder<> Builder(getGlobalContext()); 638 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, 643 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 703 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 745 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 752 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 753 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 754 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 782 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 825 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction) [all...] |
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 609 static IRBuilder<> Builder(getGlobalContext()); 621 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, 626 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 679 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 718 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 725 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 726 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 727 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 755 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 798 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction) [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/initial/ |
toy.cpp | 856 static IRBuilder<> Builder(getGlobalContext()); 867 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, 872 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 928 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 967 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 974 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 975 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 976 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 1004 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 1047 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction) [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
toy-jit.cpp | 612 static IRBuilder<> Builder(getGlobalContext()); 623 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, 628 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 685 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 727 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 734 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 735 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 736 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 764 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 807 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction) [all...] |
toy.cpp | 896 static IRBuilder<> Builder(getGlobalContext()); 907 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0, 912 return ConstantFP::get(getGlobalContext(), APFloat(Val)); 968 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()), 1007 ConstantFP::get(getGlobalContext(), APFloat(0.0)), 1014 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 1015 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else"); 1016 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont"); 1044 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, 1087 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction) [all...] |
/external/llvm/unittests/Transforms/Utils/ |
IntegerDivision.cpp | 24 LLVMContext &C(getGlobalContext()); 54 LLVMContext &C(getGlobalContext()); 84 LLVMContext &C(getGlobalContext()); 114 LLVMContext &C(getGlobalContext()); 145 LLVMContext &C(getGlobalContext()); 175 LLVMContext &C(getGlobalContext()); 205 LLVMContext &C(getGlobalContext()); 235 LLVMContext &C(getGlobalContext());
|
/external/llvm/include/llvm/IR/ |
LLVMContext.h | 175 /// getGlobalContext - Returns a global context. This is for LLVM clients that 177 extern LLVMContext &getGlobalContext();
|