[llvm-commits] CVS: llvm/utils/TableGen/CodeGenIntrinsics.h CodeGenTarget.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 27 16:03:20 PST 2006
Changes in directory llvm/utils/TableGen:
CodeGenIntrinsics.h updated: 1.8 -> 1.9
CodeGenTarget.cpp updated: 1.60 -> 1.61
---
Log message:
revert this, it breaks things.
---
Diffs of the changes: (+4 -5)
CodeGenIntrinsics.h | 2 +-
CodeGenTarget.cpp | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/utils/TableGen/CodeGenIntrinsics.h
diff -u llvm/utils/TableGen/CodeGenIntrinsics.h:1.8 llvm/utils/TableGen/CodeGenIntrinsics.h:1.9
--- llvm/utils/TableGen/CodeGenIntrinsics.h:1.8 Mon Mar 27 16:48:18 2006
+++ llvm/utils/TableGen/CodeGenIntrinsics.h Mon Mar 27 18:03:08 2006
@@ -46,7 +46,7 @@
NoMem, ReadArgMem, ReadMem, WriteArgMem, WriteMem
} ModRef;
- CodeGenIntrinsic(Record *R, CodeGenTarget &CGT);
+ CodeGenIntrinsic(Record *R, CodeGenTarget *CGT);
};
/// LoadIntrinsics - Read all of the intrinsics defined in the specified
Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.60 llvm/utils/TableGen/CodeGenTarget.cpp:1.61
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.60 Mon Mar 27 16:48:18 2006
+++ llvm/utils/TableGen/CodeGenTarget.cpp Mon Mar 27 18:03:08 2006
@@ -362,13 +362,12 @@
std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic");
std::vector<CodeGenIntrinsic> Result;
- CodeGenTarget CGT;
for (unsigned i = 0, e = I.size(); i != e; ++i)
- Result.push_back(CodeGenIntrinsic(I[i], CGT));
+ Result.push_back(CodeGenIntrinsic(I[i], 0));
return Result;
}
-CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget &CGT) {
+CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget *CGT) {
TheDef = R;
std::string DefName = R->getName();
ModRef = WriteMem;
@@ -415,7 +414,7 @@
assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!");
ArgTypes.push_back(TyEl->getValueAsString("TypeVal"));
- ArgVTs.push_back(getValueType(TyEl->getValueAsDef("VT"), &CGT));
+ ArgVTs.push_back(getValueType(TyEl->getValueAsDef("VT"), 0));
ArgTypeDefs.push_back(TyEl);
}
if (ArgTypes.size() == 0)
More information about the llvm-commits
mailing list