HomeSort by relevance Sort by last modified time
    Searched refs:getGlobalContext (Results 1 - 25 of 74) sorted by null

1 2 3

  /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...]
PassManagerTest.cpp 290 Module M("test-once", getGlobalContext());
314 Module M("test-rerun", getGlobalContext());
405 Module* mod = new Module("test-mem", getGlobalContext());
414 /*Result=*/IntegerType::get(getGlobalContext(), 32),
419 FuncTy_2_args.push_back(IntegerType::get(getGlobalContext(), 1));
421 /*Result=*/Type::getVoidTy(getGlobalContext()),
472 BasicBlock* label_entry = BasicBlock::Create(getGlobalContext(), "entry",func_test1,0);
480 ReturnInst::Create(getGlobalContext(), int32_3, label_entry);
487 BasicBlock* label_entry_5 = BasicBlock::Create(getGlobalContext(), "entry",func_test2,0);
495 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5)
    [all...]
VerifierTest.cpp 26 LLVMContext &C = getGlobalContext();
48 LLVMContext &C = getGlobalContext();
65 LLVMContext &C = getGlobalContext();
IRBuilderTest.cpp 28 M.reset(new Module("MyModule", getGlobalContext()));
29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()),
32 BB = BasicBlock::Create(getGlobalContext(), "", F);
33 GV = new GlobalVariable(*M, Type::getFloatTy(getGlobalContext()), true,
81 BasicBlock *TBB = BasicBlock::Create(getGlobalContext(), "", F);
82 BasicBlock *FBB = BasicBlock::Create(getGlobalContext(), "", F);
92 MDNode *Weights = MDBuilder(getGlobalContext()).createBranchWeights(42, 13);
112 EXPECT_EQ(Ty1, IntegerType::get(getGlobalContext(), 1));
117 EXPECT_EQ(IntPtrTy, IntegerType::get(getGlobalContext(), IntPtrBitSize));
WaymarkTest.cpp 22 return ConstantInt::get(Type::getInt8Ty(getGlobalContext()), c);
30 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 OwningPtr<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...]
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()));
  /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 25 : M(new Module("<main>", getGlobalContext())), Error(""),
46 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
59 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
72 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
83 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2");
100 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
111 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global2");
120 NewExtGlobal(Type::getInt32Ty(getGlobalContext()), "Global1");
  /external/llvm/unittests/Bitcode/
BitReaderTest.cpp 26 Module* Mod = new Module("test-mem", getGlobalContext());
58 OwningPtr<Module> m(getLazyBitcodeModule(Buffer, getGlobalContext(), &errMsg));
  /external/llvm/examples/Kaleidoscope/Chapter5/
toy.cpp 457 static IRBuilder<> Builder(getGlobalContext());
464 return ConstantFP::get(getGlobalContext(), APFloat(Val));
485 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
516 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
523 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
524 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
525 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
553 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
586 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction);
595 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str())
    [all...]
  /external/llvm/examples/Kaleidoscope/Chapter6/
toy.cpp 542 static IRBuilder<> Builder(getGlobalContext());
549 return ConstantFP::get(getGlobalContext(), APFloat(Val));
581 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
620 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
627 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
628 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
629 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
657 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
690 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction);
699 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str())
    [all...]
  /external/llvm/unittests/Support/
ValueHandleTest.cpp 28 ConstantV(ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 0)),
29 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) {
46 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), WVH->getType());
47 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*WVH).getType());
201 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), CVH->getType());
202 EXPECT_EQ(Type::getInt32Ty(getGlobalContext()), (*CVH).getType());
296 Context(&getGlobalContext()) {}
299 Context(&getGlobalContext()) {}
303 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())));
320 Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))));
    [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 349 static IRBuilder<> Builder(getGlobalContext());
355 return ConstantFP::get(getGlobalContext(), APFloat(Val));
376 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
404 Type::getDoubleTy(getGlobalContext()));
405 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
451 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction);
540 LLVMContext &Context = getGlobalContext();
  /external/llvm/examples/Kaleidoscope/MCJIT/cached/
toy-jit.cpp 626 static IRBuilder<> Builder(getGlobalContext());
637 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0,
642 return ConstantFP::get(getGlobalContext(), APFloat(Val));
702 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
744 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
751 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
752 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
753 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
781 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
824 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction)
    [all...]
  /external/llvm/examples/Kaleidoscope/Chapter7/
toy.cpp 607 static IRBuilder<> Builder(getGlobalContext());
619 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0,
624 return ConstantFP::get(getGlobalContext(), APFloat(Val));
677 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
716 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
723 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
724 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
725 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
753 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
796 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction)
    [all...]
  /external/llvm/examples/Kaleidoscope/MCJIT/initial/
toy.cpp 855 static IRBuilder<> Builder(getGlobalContext());
866 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0,
871 return ConstantFP::get(getGlobalContext(), APFloat(Val));
927 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
966 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
973 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
974 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
975 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
1003 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
1046 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction)
    [all...]
  /external/llvm/examples/Kaleidoscope/MCJIT/lazy/
toy-jit.cpp 611 static IRBuilder<> Builder(getGlobalContext());
622 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0,
627 return ConstantFP::get(getGlobalContext(), APFloat(Val));
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
726 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
733 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
734 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
735 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
763 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
806 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction)
    [all...]
toy.cpp 895 static IRBuilder<> Builder(getGlobalContext());
906 return TmpB.CreateAlloca(Type::getDoubleTy(getGlobalContext()), 0,
911 return ConstantFP::get(getGlobalContext(), APFloat(Val));
967 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
1006 ConstantFP::get(getGlobalContext(), APFloat(0.0)),
1013 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
1014 BasicBlock *ElseBB = BasicBlock::Create(getGlobalContext(), "else");
1015 BasicBlock *MergeBB = BasicBlock::Create(getGlobalContext(), "ifcont");
1043 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2,
1086 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction)
    [all...]
  /external/llvm/include/llvm/IR/
LLVMContext.h 110 /// getGlobalContext - Returns a global context. This is for LLVM clients that
112 extern LLVMContext &getGlobalContext();
  /external/llvm/lib/Bitcode/Reader/
BitReader.cpp 25 return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule,

Completed in 1397 milliseconds

1 2 3