Lines Matching defs:type

247 ConstantInst *Module::getConstant(TypeIntInst *type, int32_t value) {
248 return getGlobalSection()->getConstant(type, value);
251 ConstantInst *Module::getConstant(TypeIntInst *type, uint32_t value) {
252 return getGlobalSection()->getConstant(type, value);
255 ConstantInst *Module::getConstant(TypeFloatInst *type, float value) {
256 return getGlobalSection()->getConstant(type, value);
259 ConstantCompositeInst *Module::getConstantComposite(TypeVectorInst *type,
262 return getGlobalSection()->getConstantComposite(type, components, width);
265 ConstantCompositeInst *Module::getConstantComposite(TypeVectorInst *type,
270 // resulting vector type
272 return getConstantComposite(type, comps, 3);
275 ConstantCompositeInst *Module::getConstantComposite(TypeVectorInst *type,
281 // resulting vector type
283 return getConstantComposite(type, comps, 4);
669 ConstantInst *GlobalSection::getConstant(TypeIntInst *type, int32_t value) {
674 return mBuilder->MakeConstant(type, cdn);
679 ConstantInst *GlobalSection::getConstant(TypeIntInst *type, uint32_t value) {
684 return mBuilder->MakeConstant(type, cdn);
689 ConstantInst *GlobalSection::getConstant(TypeFloatInst *type, float value) {
694 return mBuilder->MakeConstant(type, cdn);
700 GlobalSection::getConstantComposite(TypeVectorInst *type,
715 ConstantCompositeInst *c = mBuilder->MakeConstantComposite(type);
750 Module::errs() << "unexpected int type";
759 Module::errs() << "unexpected int type";
781 Module::errs() << "unexpeced floating point type";
805 [=](TypePointerInst *type) -> bool {
806 return type->mOperand1 == storage &&
807 type->mOperand2.mInstruction == pointeeType;
818 [=](TypeRuntimeArrayInst * /*type*/) -> bool {
819 // return type->mOperand1.mInstruction == elemType;
842 [=](TypeFunctionInst *type) -> bool {
843 if (type->mOperand1.mInstruction != retType ||
844 type->mOperand2.size() != numArg) {
848 if (type->mOperand2[i].mInstruction != argType[i]) {