Displaying 2 results from an estimated 2 matches for "bitsperunit".
Did you mean:
bits_per_unit
2019 May 09
2
RFC: On removing magic numbers assuming 8-bit bytes
...gt;
IMO, the argument of removing "magic constants", and replacing them with a
semantically meaningful value does have some merit, even lacking any
backend that uses a number other than "8".
I guess I'd say that my feeling is that if llvm's codebase already had a
"bitsPerUnit()" accessor (as GCC calls this concept), I would probably not
say that we should replace all the calls with literal '8's across the
code-base simply because no current target uses any value other than 8.
It's an abstraction which does make sense on its own, even if it's
current...
2019 May 09
3
RFC: On removing magic numbers assuming 8-bit bytes
On Wed, 2019-05-08 at 11:12 -0700, Philip Reames wrote:
> On 5/8/19 1:25 AM, Jesper Antonsson wrote:
> > On Mon, 2019-05-06 at 15:56 -0700, Philip Reames via llvm-dev
> > wrote:
> > > On 5/6/19 2:43 AM, Tim Northover via llvm-dev wrote:
> > > > On Mon, 6 May 2019 at 10:13, James Courtier-Dutton via llvm-dev
> > > > <llvm-dev at lists.llvm.org>