From 9a3113aeb8b560cf696bbd3684367fedcc10a9b3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jan 2009 01:12:03 +0000 Subject: add nocapture attribute to llvm.mem* intrinsics and have tblgen parse them. tblgen doesn't yet do anything with this info though. llvm-svn: 62065 --- llvm/utils/TableGen/CodeGenTarget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp') diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 0039a894972..274cc78c35b 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -546,7 +546,10 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { ModRef = WriteMem; else if (Property->getName() == "Commutative") isCommutative = true; - else + else if (Property->isSubClassOf("NoCapture")) { + unsigned ArgNo = Property->getValueAsInt("ArgNo"); + ArgumentAttributes.push_back(std::make_pair(ArgNo, NoCapture)); + } else assert(0 && "Unknown property!"); } } -- cgit v1.2.3