Wrap calls to XXXTargetCodeGenInfo constructors into factory functions.
This allows moving implementations of TargetCodeGenInfo to dedicated cpp
files without a change.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Currently, the functions just forward their arguments to the constructors (*), but I think more stuff
should be pushed into them from createTargetCodeGenInfo. This is left for target maintainers.
Implementations of the added functions will be distributed across *.cpp files in the next commit.
(*) Calls to isStructReturnInRegABI (PPC and X86) were moved because these methods are not
accessible from other TUs.