First Last Prev Next    No search results available
Details
: Support bitwidth attribute in llvm-gcc
Bug#: 1284
: tools
: llvm-gcc
Status: ASSIGNED
Resolution:
: All
: All
: trunk
: P2
: enhancement
: 2.1

:
: new-feature
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Reid Spencer <rspencer@reidspencer.com>
Assigned To: Reid Spencer <rspencer@reidspencer.com>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2007-03-28 11:45
The llvm-gcc tool should support a bitwidth attribute that permits arbitrary
precision bit width integers to be used. This PR is to track the development of
that feature. 

As with other type attributes, this feature requests that:

__attribute__((bitwidth(N)))

be recognized by llvm-gcc so that things like:

typedef int __attribute__((bitwidth(23))

could be used to make a signed 23 bit integer.
------- Comment #1 From Reid Spencer 2007-04-25 23:27:50 -------
This won't happen for 2.0
------- Comment #2 From Reid Spencer 2007-05-17 17:06:22 -------
The code for this feature and related ones is done. It includes the beginnings
of APIntification of llvm-gcc (to represent integer constants with APInt instead
of with a pair of HOST_WIDE_INT) as well as several builtin functions for
manipulating integers of various bit widths.

The patch for this will be submitted sometime in the 2.1 time frame.
------- Comment #3 From Sheng Zhou 2008-01-14 20:04:38 -------
Hi Chris and Reid,

Is it the time to commit the patch after public review ?


Sheng.
------- Comment #4 From Chris Lattner 2008-01-14 22:22:35 -------
Please wait until after 2.2 branches (wednesday), we are working on stabilizing
things right now.

First Last Prev Next    No search results available