[llvm-commits] patch: partial dse
Duncan Sands
baldrick at free.fr
Sat Jan 9 08:23:51 PST 2010
Hi Nick,
> Is this (N+7)/8 logic codified somewhere outside of TargetData? It'd be
> useful to know how many bits the i6* will really modify even when
> targetdata isn't available, but I don't want to scatter the assumptions
> everywhere, making it difficult to port LLVM to the PDP-11 some day.
it is really (N + BITS_IN_A_UNIT-1)/BITS_IN_A_UNIT, where a unit is the
smallest addressable number of bits, typically 8. As such it is target
dependent, though currently all targets use "8", so can't really be used
without target data :(
Ciao,
Duncan.
More information about the llvm-commits
mailing list