llvm.org GIT mirror llvm / 4f6bab9
Drop the "2" suffix on some enums. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133274 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
4 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
232232 // This store code encodes the pointer type, rather than the value type
233233 // this is so information only available in the pointer type (e.g. address
234234 // spaces) is retained.
235 FUNC_CODE_INST_STORE2 = 24, // STORE: [ptrty,ptr,val, align, vol]
235 FUNC_CODE_INST_STORE = 24, // STORE: [ptrty,ptr,val, align, vol]
236236 // 25 is unused.
237237 FUNC_CODE_INST_EXTRACTVAL = 26, // EXTRACTVAL: [n x operands]
238238 FUNC_CODE_INST_INSERTVAL = 27, // INSERTVAL: [n x operands]
246246 // 32 is unused.
247247 FUNC_CODE_DEBUG_LOC_AGAIN = 33, // DEBUG_LOC_AGAIN
248248
249 FUNC_CODE_INST_CALL2 = 34, // CALL2: [attr, fnty, fnid, args...]
250
251 FUNC_CODE_DEBUG_LOC2 = 35 // DEBUG_LOC2: [Line,Col,ScopeVal, IAVal]
249 FUNC_CODE_INST_CALL = 34, // CALL: [attr, fnty, fnid, args...]
250
251 FUNC_CODE_DEBUG_LOC = 35 // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
252252 };
253253 } // End bitc namespace
254254 } // End llvm namespace
18471847 I = 0;
18481848 continue;
18491849
1850 case bitc::FUNC_CODE_DEBUG_LOC2: { // DEBUG_LOC: [line, col, scope, ia]
1850 case bitc::FUNC_CODE_DEBUG_LOC: { // DEBUG_LOC: [line, col, scope, ia]
18511851 I = 0; // Get the last instruction emitted.
18521852 if (CurBB && !CurBB->empty())
18531853 I = &CurBB->back();
22732273 InstructionList.push_back(I);
22742274 break;
22752275 }
2276 case bitc::FUNC_CODE_INST_STORE2: { // STORE2:[ptrty, ptr, val, align, vol]
2276 case bitc::FUNC_CODE_INST_STORE: { // STORE2:[ptrty, ptr, val, align, vol]
22772277 unsigned OpNum = 0;
22782278 Value *Val, *Ptr;
22792279 if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) ||
22862286 InstructionList.push_back(I);
22872287 break;
22882288 }
2289 case bitc::FUNC_CODE_INST_CALL2: {
2289 case bitc::FUNC_CODE_INST_CALL: {
22902290 // CALL: [paramattrs, cc, fnty, fnid, arg0, arg1...]
22912291 if (Record.size() < 3)
22922292 return Error("Invalid CALL record");
11021102 Vals.push_back(cast(I).isVolatile());
11031103 break;
11041104 case Instruction::Store:
1105 Code = bitc::FUNC_CODE_INST_STORE2;
1105 Code = bitc::FUNC_CODE_INST_STORE;
11061106 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr
11071107 Vals.push_back(VE.getValueID(I.getOperand(0))); // val.
11081108 Vals.push_back(Log2_32(cast(I).getAlignment())+1);
11131113 const PointerType *PTy = cast(CI.getCalledValue()->getType());
11141114 const FunctionType *FTy = cast(PTy->getElementType());
11151115
1116 Code = bitc::FUNC_CODE_INST_CALL2;
1116 Code = bitc::FUNC_CODE_INST_CALL;
11171117
11181118 Vals.push_back(VE.getAttributeID(CI.getAttributes()));
11191119 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()));
12571257 Vals.push_back(DL.getCol());
12581258 Vals.push_back(Scope ? VE.getValueID(Scope)+1 : 0);
12591259 Vals.push_back(IA ? VE.getValueID(IA)+1 : 0);
1260 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC2, Vals);
1260 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
12611261 Vals.clear();
12621262
12631263 LastDL = DL;
232232 case bitc::FUNC_CODE_INST_ALLOCA: return "INST_ALLOCA";
233233 case bitc::FUNC_CODE_INST_LOAD: return "INST_LOAD";
234234 case bitc::FUNC_CODE_INST_VAARG: return "INST_VAARG";
235 case bitc::FUNC_CODE_INST_STORE2: return "INST_STORE2";
235 case bitc::FUNC_CODE_INST_STORE: return "INST_STORE";
236236 case bitc::FUNC_CODE_INST_EXTRACTVAL: return "INST_EXTRACTVAL";
237237 case bitc::FUNC_CODE_INST_INSERTVAL: return "INST_INSERTVAL";
238238 case bitc::FUNC_CODE_INST_CMP2: return "INST_CMP2";
239239 case bitc::FUNC_CODE_INST_VSELECT: return "INST_VSELECT";
240240 case bitc::FUNC_CODE_DEBUG_LOC_AGAIN: return "DEBUG_LOC_AGAIN";
241 case bitc::FUNC_CODE_INST_CALL2: return "INST_CALL2";
242 case bitc::FUNC_CODE_DEBUG_LOC2: return "DEBUG_LOC2";
241 case bitc::FUNC_CODE_INST_CALL: return "INST_CALL";
242 case bitc::FUNC_CODE_DEBUG_LOC: return "DEBUG_LOC";
243243 }
244244 case bitc::TYPE_SYMTAB_BLOCK_ID:
245245 switch (CodeID) {