Lines Matching refs:Vals
106 SmallVector<unsigned, 64> Vals; in WriteStringRecord() local
112 Vals.push_back(Str[i]); in WriteStringRecord()
116 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
434 SmallVector<unsigned, 64> Vals; in WriteModuleInfo() local
442 Vals.push_back(VE.getTypeID(GV->getType())); in WriteModuleInfo()
443 Vals.push_back(GV->isConstant()); in WriteModuleInfo()
444 Vals.push_back(GV->isDeclaration() ? 0 : in WriteModuleInfo()
446 Vals.push_back(getEncodedLinkage(GV)); in WriteModuleInfo()
447 Vals.push_back(Log2_32(GV->getAlignment())+1); in WriteModuleInfo()
448 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0); in WriteModuleInfo()
452 Vals.push_back(getEncodedVisibility(GV)); in WriteModuleInfo()
453 Vals.push_back(GV->isThreadLocal()); in WriteModuleInfo()
454 Vals.push_back(GV->hasUnnamedAddr()); in WriteModuleInfo()
459 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in WriteModuleInfo()
460 Vals.clear(); in WriteModuleInfo()
467 Vals.push_back(VE.getTypeID(F->getType())); in WriteModuleInfo()
468 Vals.push_back(F->getCallingConv()); in WriteModuleInfo()
469 Vals.push_back(F->isDeclaration()); in WriteModuleInfo()
470 Vals.push_back(getEncodedLinkage(F)); in WriteModuleInfo()
471 Vals.push_back(VE.getAttributeID(F->getAttributes())); in WriteModuleInfo()
472 Vals.push_back(Log2_32(F->getAlignment())+1); in WriteModuleInfo()
473 Vals.push_back(F->hasSection() ? SectionMap[F->getSection()] : 0); in WriteModuleInfo()
474 Vals.push_back(getEncodedVisibility(F)); in WriteModuleInfo()
475 Vals.push_back(F->hasGC() ? GCMap[F->getGC()] : 0); in WriteModuleInfo()
476 Vals.push_back(F->hasUnnamedAddr()); in WriteModuleInfo()
479 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in WriteModuleInfo()
480 Vals.clear(); in WriteModuleInfo()
486 Vals.push_back(VE.getTypeID(AI->getType())); in WriteModuleInfo()
487 Vals.push_back(VE.getValueID(AI->getAliasee())); in WriteModuleInfo()
488 Vals.push_back(getEncodedLinkage(AI)); in WriteModuleInfo()
489 Vals.push_back(getEncodedVisibility(AI)); in WriteModuleInfo()
491 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse); in WriteModuleInfo()
492 Vals.clear(); in WriteModuleInfo()
536 const ValueEnumerator::ValueList &Vals = VE.getMDValues(); in WriteModuleMetadata() local
540 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in WriteModuleMetadata()
542 if (const MDNode *N = dyn_cast<MDNode>(Vals[i].first)) { in WriteModuleMetadata()
550 } else if (const MDString *MDS = dyn_cast<MDString>(Vals[i].first)) { in WriteModuleMetadata()
604 const SmallVector<const MDNode *, 8> &Vals = VE.getFunctionLocalMDValues(); in WriteFunctionLocalMetadata() local
605 for (unsigned i = 0, e = Vals.size(); i != e; ++i) in WriteFunctionLocalMetadata()
606 if (const MDNode *N = Vals[i]) in WriteFunctionLocalMetadata()
718 const ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteConstants() local
721 const Value *V = Vals[i].first; in WriteConstants()
925 const ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteModuleConstants() local
929 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in WriteModuleConstants()
930 if (!isa<GlobalValue>(Vals[i].first)) { in WriteModuleConstants()
931 WriteConstants(i, Vals.size(), VE, Stream, true); in WriteModuleConstants()
946 SmallVector<unsigned, 64> &Vals, in PushValueAndType() argument
949 Vals.push_back(ValID); in PushValueAndType()
951 Vals.push_back(VE.getTypeID(V->getType())); in PushValueAndType()
960 SmallVector<unsigned, 64> &Vals) { in WriteInstruction() argument
968 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
970 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
971 Vals.push_back(GetEncodedCastOpcode(I.getOpcode())); in WriteInstruction()
975 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
977 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
978 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode())); in WriteInstruction()
983 Vals.push_back(Flags); in WriteInstruction()
993 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
997 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1000 Vals.push_back(*i); in WriteInstruction()
1005 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1006 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1009 Vals.push_back(*i); in WriteInstruction()
1014 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1015 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1016 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1020 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1021 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1025 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1026 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1027 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1031 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1032 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1033 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1039 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1040 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1041 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1051 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1055 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1063 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in WriteInstruction()
1065 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in WriteInstruction()
1066 Vals.push_back(VE.getValueID(II.getCondition())); in WriteInstruction()
1072 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1074 Vals.push_back(VE.getValueID(I.getOperand(i))); in WriteInstruction()
1078 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1080 Vals.push_back(VE.getValueID(I.getOperand(i))); in WriteInstruction()
1090 Vals.push_back(VE.getAttributeID(II->getAttributes())); in WriteInstruction()
1091 Vals.push_back(II->getCallingConv()); in WriteInstruction()
1092 Vals.push_back(VE.getValueID(II->getNormalDest())); in WriteInstruction()
1093 Vals.push_back(VE.getValueID(II->getUnwindDest())); in WriteInstruction()
1094 PushValueAndType(Callee, InstID, Vals, VE); in WriteInstruction()
1098 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param. in WriteInstruction()
1104 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg in WriteInstruction()
1119 Vals.push_back(VE.getTypeID(PN.getType())); in WriteInstruction()
1121 Vals.push_back(VE.getValueID(PN.getIncomingValue(i))); in WriteInstruction()
1122 Vals.push_back(VE.getValueID(PN.getIncomingBlock(i))); in WriteInstruction()
1129 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1130 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1131 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in WriteInstruction()
1132 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1137 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr in WriteInstruction()
1140 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in WriteInstruction()
1141 Vals.push_back(cast<LoadInst>(I).isVolatile()); in WriteInstruction()
1145 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1146 Vals.push_back(VE.getValueID(I.getOperand(0))); // val. in WriteInstruction()
1147 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in WriteInstruction()
1148 Vals.push_back(cast<StoreInst>(I).isVolatile()); in WriteInstruction()
1157 Vals.push_back(VE.getAttributeID(CI.getAttributes())); in WriteInstruction()
1158 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall())); in WriteInstruction()
1159 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee in WriteInstruction()
1163 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); // fixed param. in WriteInstruction()
1169 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs in WriteInstruction()
1175 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty in WriteInstruction()
1176 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist. in WriteInstruction()
1177 Vals.push_back(VE.getTypeID(I.getType())); // restype. in WriteInstruction()
1181 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteInstruction()
1182 Vals.clear(); in WriteInstruction()
1249 SmallVector<unsigned, 64> Vals; in WriteFunction() local
1253 Vals.push_back(VE.getBasicBlocks().size()); in WriteFunction()
1254 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in WriteFunction()
1255 Vals.clear(); in WriteFunction()
1276 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1290 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in WriteFunction()
1295 Vals.push_back(DL.getLine()); in WriteFunction()
1296 Vals.push_back(DL.getCol()); in WriteFunction()
1297 Vals.push_back(Scope ? VE.getValueID(Scope)+1 : 0); in WriteFunction()
1298 Vals.push_back(IA ? VE.getValueID(IA)+1 : 0); in WriteFunction()
1299 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in WriteFunction()
1300 Vals.clear(); in WriteFunction()
1483 SmallVector<unsigned, 1> Vals; in WriteModule() local
1484 Vals.push_back(CurVersion); in WriteModule()
1485 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in WriteModule()