[cfe-commits] r149181 - /cfe/trunk/lib/Basic/Targets.cpp

Bob Wilson bob.wilson at apple.com
Sat Jan 28 10:02:30 PST 2012


Author: bwilson
Date: Sat Jan 28 12:02:29 2012
New Revision: 149181

URL: http://llvm.org/viewvc/llvm-project?rev=149181&view=rev
Log:
Use defined-at-zero behavior for CLZ/CTZ builtins on PowerPC.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=149181&r1=149180&r2=149181&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Jan 28 12:02:29 2012
@@ -572,6 +572,8 @@
     NumRecords = clang::PPC::LastTSBuiltin-Builtin::FirstTSBuiltin;
   }
 
+  virtual bool isCLZForZeroUndef() const { return false; }
+
   virtual void getTargetDefines(const LangOptions &Opts,
                                 MacroBuilder &Builder) const;
 





More information about the cfe-commits mailing list