Lines Matching refs:Vals

122   SmallVector<unsigned, 64> Vals;  in WriteStringRecord()  local
128 Vals.push_back(Str[i]); in WriteStringRecord()
132 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
466 SmallVector<unsigned, 64> Vals; in WriteModuleInfo() local
473 Vals.push_back(VE.getTypeID(GV.getType())); in WriteModuleInfo()
474 Vals.push_back(GV.isConstant()); in WriteModuleInfo()
475 Vals.push_back(GV.isDeclaration() ? 0 : in WriteModuleInfo()
477 Vals.push_back(getEncodedLinkage(GV)); in WriteModuleInfo()
478 Vals.push_back(Log2_32(GV.getAlignment())+1); in WriteModuleInfo()
479 Vals.push_back(GV.hasSection() ? SectionMap[GV.getSection()] : 0); in WriteModuleInfo()
483 Vals.push_back(getEncodedVisibility(GV)); in WriteModuleInfo()
484 Vals.push_back(GV.isThreadLocal()); in WriteModuleInfo()
485 Vals.push_back(GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in WriteModuleInfo()
490 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in WriteModuleInfo()
491 Vals.clear(); in WriteModuleInfo()
498 Vals.push_back(VE.getTypeID(F.getType())); in WriteModuleInfo()
499 Vals.push_back(F.getCallingConv()); in WriteModuleInfo()
500 Vals.push_back(F.isDeclaration()); in WriteModuleInfo()
501 Vals.push_back(getEncodedLinkage(F)); in WriteModuleInfo()
502 Vals.push_back(VE.getAttributeID(F.getAttributes())); in WriteModuleInfo()
503 Vals.push_back(Log2_32(F.getAlignment())+1); in WriteModuleInfo()
504 Vals.push_back(F.hasSection() ? SectionMap[F.getSection()] : 0); in WriteModuleInfo()
505 Vals.push_back(getEncodedVisibility(F)); in WriteModuleInfo()
506 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in WriteModuleInfo()
507 Vals.push_back(F.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in WriteModuleInfo()
510 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in WriteModuleInfo()
511 Vals.clear(); in WriteModuleInfo()
516 Vals.push_back(VE.getTypeID(A.getType())); in WriteModuleInfo()
517 Vals.push_back(VE.getValueID(A.getAliasee())); in WriteModuleInfo()
518 Vals.push_back(getEncodedLinkage(A)); in WriteModuleInfo()
519 Vals.push_back(getEncodedVisibility(A)); in WriteModuleInfo()
521 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse); in WriteModuleInfo()
522 Vals.clear(); in WriteModuleInfo()
811 const llvm_2_9::ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteConstants() local
814 const Value *V = Vals[i].first; in WriteConstants()
1029 const llvm_2_9::ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteModuleConstants() local
1033 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in WriteModuleConstants()
1034 if (!isa<GlobalValue>(Vals[i].first)) { in WriteModuleConstants()
1035 WriteConstants(i, Vals.size(), VE, Stream, true); in WriteModuleConstants()
1050 SmallVector<unsigned, 64> &Vals, in PushValueAndType() argument
1053 Vals.push_back(ValID); in PushValueAndType()
1055 Vals.push_back(VE.getTypeID(V->getType())); in PushValueAndType()
1065 SmallVector<unsigned, 64> &Vals) { in WriteInstruction() argument
1073 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1075 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1076 Vals.push_back(GetEncodedCastOpcode(I.getOpcode())); in WriteInstruction()
1080 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1082 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1083 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode())); in WriteInstruction()
1088 Vals.push_back(Flags); in WriteInstruction()
1098 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1102 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1105 Vals.push_back(*i); in WriteInstruction()
1110 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1111 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1114 Vals.push_back(*i); in WriteInstruction()
1119 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1120 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1121 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1125 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1126 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1130 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1131 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1132 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1136 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1137 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1138 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1144 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1145 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1146 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1156 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1160 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1168 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in WriteInstruction()
1170 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in WriteInstruction()
1171 Vals.push_back(VE.getValueID(II.getCondition())); in WriteInstruction()
1179 Vals.push_back(VE.getTypeID(SI.getCondition()->getType())); in WriteInstruction()
1180 Vals.push_back(VE.getValueID(SI.getCondition())); in WriteInstruction()
1181 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in WriteInstruction()
1184 Vals.push_back(VE.getValueID(i.getCaseValue())); in WriteInstruction()
1185 Vals.push_back(VE.getValueID(i.getCaseSuccessor())); in WriteInstruction()
1191 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1193 Vals.push_back(VE.getValueID(I.getOperand(i))); in WriteInstruction()
1203 Vals.push_back(VE.getAttributeID(II->getAttributes())); in WriteInstruction()
1204 Vals.push_back(II->getCallingConv()); in WriteInstruction()
1205 Vals.push_back(VE.getValueID(II->getNormalDest())); in WriteInstruction()
1206 Vals.push_back(VE.getValueID(II->getUnwindDest())); in WriteInstruction()
1207 PushValueAndType(Callee, InstID, Vals, VE); in WriteInstruction()
1211 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param. in WriteInstruction()
1217 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg in WriteInstruction()
1229 Vals.push_back(VE.getTypeID(PN.getType())); in WriteInstruction()
1231 Vals.push_back(VE.getValueID(PN.getIncomingValue(i))); in WriteInstruction()
1232 Vals.push_back(VE.getValueID(PN.getIncomingBlock(i))); in WriteInstruction()
1239 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1240 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1241 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in WriteInstruction()
1242 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1247 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr in WriteInstruction()
1250 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in WriteInstruction()
1251 Vals.push_back(cast<LoadInst>(I).isVolatile()); in WriteInstruction()
1255 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1256 Vals.push_back(VE.getValueID(I.getOperand(0))); // val. in WriteInstruction()
1257 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in WriteInstruction()
1258 Vals.push_back(cast<StoreInst>(I).isVolatile()); in WriteInstruction()
1267 Vals.push_back(VE.getAttributeID(CI.getAttributes())); in WriteInstruction()
1268 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall())); in WriteInstruction()
1269 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee in WriteInstruction()
1273 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); // fixed param. in WriteInstruction()
1279 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs in WriteInstruction()
1285 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty in WriteInstruction()
1286 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist. in WriteInstruction()
1287 Vals.push_back(VE.getTypeID(I.getType())); // restype. in WriteInstruction()
1291 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteInstruction()
1292 Vals.clear(); in WriteInstruction()
1359 SmallVector<unsigned, 64> Vals; in WriteFunction() local
1363 Vals.push_back(VE.getBasicBlocks().size()); in WriteFunction()
1364 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in WriteFunction()
1365 Vals.clear(); in WriteFunction()
1386 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1401 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in WriteFunction()
1405 Vals.push_back(DL->getLine()); in WriteFunction()
1406 Vals.push_back(DL->getColumn()); in WriteFunction()
1407 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in WriteFunction()
1408 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in WriteFunction()
1409 Stream.EmitRecord(FUNC_CODE_DEBUG_LOC_2_7, Vals); in WriteFunction()
1410 Vals.clear(); in WriteFunction()
1592 SmallVector<unsigned, 1> Vals; in WriteModule() local
1593 Vals.push_back(CurVersion); in WriteModule()
1594 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in WriteModule()