[LLVMdev] Subtarget class

Chris Lattner sabre at nondot.org
Mon Jul 30 12:12:07 PDT 2007


On Mon, 30 Jul 2007, Dan Gohman wrote:
> What's the purpose of the TargetSubtarget class? It appears the only users
> of getSubtarget are in the target-specific code, where the abstraction is
> superfluous.
>
> Is it just a way to encourage targets to follow a nice pattern of keeping
> subtarget state in a separate class, or are there grand plans?

It is just a pattern that we recommend targets to follow.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list