[PATCH] D34103: Allow use of fixed width integer types in builtin definitions

Edward Jones via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 12 06:47:40 PDT 2017


edward-jones created this revision.

This makes it possible to specify a bit width after the 'i' integer type specifier when defining builtins. The bswap and bitreverse builtins have been updated so that their definitions use fixed-width types instead of short, int and long, so that they work on targets where int != 32-bits and long != 64 bits.


https://reviews.llvm.org/D34103

Files:
  include/clang/Basic/Builtins.def
  lib/AST/ASTContext.cpp
  test/CodeGen/builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34103.102178.patch
Type: text/x-patch
Size: 3730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170612/06649645/attachment.bin>


More information about the cfe-commits mailing list