[llvm-commits] [llvm] r58832 - in /llvm/trunk/lib/Target/CellSPU: SPUTargetAsmInfo.cpp SPUTargetAsmInfo.h SPUTargetMachine.cpp

Anton Korobeynikov anton at korobeynikov.info
Fri Nov 7 00:05:31 PST 2008


Hi Scott,

> +  template <class BaseTAI>
> +  struct SPUTargetAsmInfo : public BaseTAI {
The main reason for this trick was that we had common code in X86/PPC
TAI which can be aplied to all subtargets (handling of inline asm
mostly). And at the same time we had to 'use' more or less
arch-independent {Darwin,ELF}TargetAsmInfo. Is it the same situation
for SPU? If not - you can just do normal subclassing, since this
approach leads to fatter code.

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



More information about the llvm-commits mailing list