[PATCH] CodeGen: implement __emit intrinsic

Reid Kleckner rnk at google.com
Tue Dec 16 15:14:49 PST 2014


lgtm


================
Comment at: lib/CodeGen/CGBuiltin.cpp:3180
@@ +3179,3 @@
+    uint64_t ZExtValue =
+        Builder.getInt(Value.zextOrTrunc(IsThumb ? 16 : 32))->getZExtValue();
+
----------------
No need to go through llvm::ConstantInt, you can just take the truncated APInt and do .getZExtValue().

http://reviews.llvm.org/D3489

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list