[LLVMdev] Subtarget class

Dan Gohman djg at cray.com
Mon Jul 30 07:19:09 PDT 2007

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

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 Gohman, Cray Inc.

More information about the llvm-dev mailing list