llvm-project
0d40671f - RuntimeLibcalls: Split lowering decisions into LibcallLoweringInfo

Commit
5 days ago
RuntimeLibcalls: Split lowering decisions into LibcallLoweringInfo Introduce a new class for the TargetLowering usage. This tracks the subtarget specific lowering decisions for which libcall to use. RuntimeLibcallsInfo is a module level property, which may have multiple implementations of a particular libcall available. This attempts to be a minimum boilerplate patch to introduce the new concept. In the future we should have a tablegen way of selecting which implementations should be used for a subtarget. Currently we do have some conflicting implementations added, it just happens to work out that the default cases to prefer is alphabetically first (plus some of these still are using manual overrides in TargetLowering constructors).
Author
Committer
Parents
Loading