From a62c302ddd79c525d6fac050974911d36662ebfe 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62065 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenTarget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/TableGen/CodeGenTarget.cpp') diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 0039a89497..274cc78c35 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/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-70-g09d2