[llvm-commits] PATCH: Add 64-bit architecture predicate to llvm::Triple

Anton Korobeynikov anton at korobeynikov.info
Mon Jan 30 03:51:26 PST 2012


> This predicate doesn't make much sense inside of LLVM currently because all
> of the backends track 64-bitness separately for some (likely historical)
> reason. However, Clang could benefit greatly from this predicate, it would
> remove one of the most commonly repeated queries about a triple. It also
> seems likely that targets could move toward relying more heavily on the
> triple to deduce these things, or at least start asserting that the explicit
> 64-bitness of the subtarget objects matches the triple.
This looks ok to me. One random thought - msp430 is 16 bit target. And
I have some plans to do something  in msp430 world again.
Does this make sense to query for "bitness" of the platform instead?
So, we can return e.g. whether the platform is 16 or 32 or 64 bits?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list