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? Dan -- Dan Gohman, Cray Inc.
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/
Possibly Parallel Threads
- [LLVMdev] Embedding cpu and feature strings into IR and enabling switching subtarget on a per function basis
- [LLVMdev] Linux/ppc backend
- [LLVMdev] API Changes: TargetMachine::getSubtarget
- [LLVMdev] [PATCH ]Add Subtarget ptx23
- [LLVMdev] [PATCH ]Add Subtarget ptx23