Lines Matching defs:Context

104   LLVMContext &Context;
106 BitcodeReaderValueList(LLVMContext &C) : Context(C) {}
156 LLVMContext &Context;
159 : NumFwdRefs(0), AnyFwdRefs(false), Context(C) {}
186 LLVMContext &Context;
286 StructType *createIdentifiedStructType(LLVMContext &Context, StringRef Name);
287 StructType *createIdentifiedStructType(LLVMContext &Context);
394 : Context(C), DiagnosticHandler(getDiagHandler(DiagnosticHandler, C)),
542 explicit ConstantPlaceHolder(Type *Ty, LLVMContext& Context)
544 Op<0>() = UndefValue::get(Type::getInt32Ty(Context));
608 Constant *C = new ConstantPlaceHolder(Ty, Context);
744 Metadata *MD = MDNode::getTemporary(Context, None).release();
779 return TypeList[ID] = createIdentifiedStructType(Context);
782 StructType *BitcodeReader::createIdentifiedStructType(LLVMContext &Context,
784 auto *Ret = StructType::create(Context, Name);
789 StructType *BitcodeReader::createIdentifiedStructType(LLVMContext &Context) {
790 auto *Ret = StructType::create(Context);
866 Attrs.push_back(AttributeSet::get(Context, Record[i], B));
869 MAttributes.push_back(AttributeSet::get(Context, Attrs));
877 MAttributes.push_back(AttributeSet::get(Context, Attrs));
933 ResultTy = Type::getVoidTy(Context);
936 ResultTy = Type::getHalfTy(Context);
939 ResultTy = Type::getFloatTy(Context);
942 ResultTy = Type::getDoubleTy(Context);
945 ResultTy = Type::getX86_FP80Ty(Context);
948 ResultTy = Type::getFP128Ty(Context);
951 ResultTy = Type::getPPC_FP128Ty(Context);
954 ResultTy = Type::getLabelTy(Context);
957 ResultTy = Type::getMetadataTy(Context);
960 ResultTy = Type::getX86_MMXTy(Context);
966 ResultTy = IntegerType::get(Context, Record[0]);
1013 ResultTy = StructType::get(Context, EltTys, Record[0]);
1034 Res = createIdentifiedStructType(Context, TypeName);
1063 Res = createIdentifiedStructType(Context, TypeName);
1164 ResultTy = Type::getVoidTy(Context);
1167 ResultTy = Type::getFloatTy(Context);
1170 ResultTy = Type::getDoubleTy(Context);
1173 ResultTy = Type::getX86_FP80Ty(Context);
1176 ResultTy = Type::getFP128Ty(Context);
1179 ResultTy = Type::getPPC_FP128Ty(Context);
1182 ResultTy = Type::getLabelTy(Context);
1185 ResultTy = Type::getMetadataTy(Context);
1188 ResultTy = Type::getX86_MMXTy(Context);
1193 ResultTy = IntegerType::get(Context, Record[0]);
1197 ResultTy = StructType::create(Context, "");
1208 TypeList[NextTypeID] = StructType::create(Context, "");
1496 MDValueList.AssignValue(MDNode::get(Context, Elts), NextMDValueNo++);
1502 Metadata *MD = MDString::get(Context, String);
1620 Type *CurTy = Type::getInt32Ty(Context);
1672 V = ConstantInt::get(Context, VInt);
1680 V = ConstantFP::get(Context, APFloat(APFloat::IEEEhalf,
1683 V = ConstantFP::get(Context, APFloat(APFloat::IEEEsingle,
1686 V = ConstantFP::get(Context, APFloat(APFloat::IEEEdouble,
1693 V = ConstantFP::get(Context, APFloat(APFloat::x87DoubleExtended,
1696 V = ConstantFP::get(Context, APFloat(APFloat::IEEEquad,
1699 V = ConstantFP::get(Context, APFloat(APFloat::PPCDoubleDouble,
1830 Type::getInt1Ty(Context)),
1842 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
1853 Constant *Op2 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
1863 Type *ShufTy = VectorType::get(Type::getInt32Ty(Context),
1877 Type *ShufTy = VectorType::get(Type::getInt32Ty(Context),
1933 Type::getInt8Ty(Context),
2603 FunctionBBs[i] = BasicBlock::Create(Context, "", F);
2791 getValue(Record, OpNum, Type::getInt1Ty(Context), Cond))
2813 if (vector_type->getElementType() != Type::getInt1Ty(Context))
2817 if (Cond->getType() != Type::getInt1Ty(Context))
2830 getValue(Record, OpNum, Type::getInt32Ty(Context), Idx))
2843 getValue(Record, OpNum, Type::getInt32Ty(Context), Idx))
2903 I = ReturnInst::Create(Context);
2915 I = ReturnInst::Create(Context, Op);
2932 Value *Cond = getFnValueByID(Record[2], Type::getInt1Ty(Context));
3039 Type *ExnTy = StructType::get(Type::getInt8PtrTy(Context),
3040 Type::getInt32Ty(Context), nullptr);
3044 FunctionType::get(Type::getInt32Ty(Context), true));
3055 I = new UnreachableInst(Context);
3087 Value *Size = getFnValueByID(Record[1], Type::getInt32Ty(Context));
3124 Type::getInt32Ty(Context);
3492 LLVMContext &Context, bool WillMaterializeAll,
3494 Module *M = new Module(Buffer->getBufferIdentifier(), Context);
3496 new BitcodeReader(Buffer.get(), Context, DiagnosticHandler);
3514 LLVMContext &Context,
3516 return getLazyBitcodeModuleImpl(std::move(Buffer), Context, false,
3523 llvm_2_7::parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context,
3527 std::move(Buf), Context, true, DiagnosticHandler);
3541 llvm_2_7::getBitcodeTargetTriple(MemoryBufferRef Buffer, LLVMContext &Context,
3544 auto R = llvm::make_unique<BitcodeReader>(Buf.release(), Context,