[LLVMdev] X86: copyConstantToRegister

Chris Lattner sabre at nondot.org
Tue Jun 8 01:26:03 PDT 2004


On Tue, 8 Jun 2004, Vladimir Prus wrote:
> > This is a deprecated method that is only used by the SparcV9 backend.  It
> > used an extremely different way of representing virtual registers based on
> > Value*'s.  It turns out that doing this has some serious problems, so we
> > are slowly migrating away from it.
>
> Understood. It looks like a lot of methods in TargetMachine are for Sparc
> backend only, right?

Actually TargetMachine is pretty clean: only the getSchedInfo and
getRegInfo methods are sparc specific, and getSchedInfo is likely to be
refactored at some point to be more target specific (getRegInfo() is
already replaced by getRegisterInfo()).  Worse is TargetInstrInfo, which
has a large number of methods that are sparc specific (located under the
"WARNING: these methods are sparc specific" comment).

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list