[PATCH] llvm.noalias - Clang CodeGen for local restrict-qualified pointers
David Majnemer
david.majnemer at gmail.com
Thu Apr 30 10:53:21 PDT 2015
================
Comment at: lib/CodeGen/CGDecl.cpp:1219-1224
@@ +1218,8 @@
+
+ std::string Name = CurFn->getName();
+ Name += ": ";
+ Name += D.getName();
+
+ llvm::MDNode *Scope =
+ MDB.createAnonymousAliasScope(NoAliasDomain, Name);
+ addNoAliasScope(Scope);
----------------
It's a shame that `createAnonymousAARoot` doesn't take a twine, it would save a memory allocation through here.
http://reviews.llvm.org/D9403
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list