This will allow targets more flexibility to replace the
register allocator core passes. In a future commit,
AMDGPU will run the core register assignment passes
twice, and will also want to disallow using the
standard -regalloc option.
Details
Diff Detail
Event Timeline
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | ||
---|---|---|
191 | Could you clang-format these? clang-format would place these short functions in a single line. |
LGTM, one last nitpick below.
lib/CodeGen/TargetPassConfig.cpp | ||
---|---|---|
1106 | Add a comment on the declaration of addPreRewrite that it may not be honored if the target overloads addRegAssignAndRewriteOptimized or more generally doesn't actually have two distinct passes (e.g., the fast variant wouldn't call into addPreRewrite). |
Should the hook says Assignment *and* rewriting?