HomePhabricator

[GlobalISel] Introduce a CSEConfigBase class to allow targets to define their…

Description

[GlobalISel] Introduce a CSEConfigBase class to allow targets to define their own CSE configs.

Because CodeGen can't depend on GlobalISel, we need a way to encapsulate the CSE
configs that can be passed between TargetPassConfig and the targets' custom
pass configs. This CSEConfigBase allows targets to create custom CSE configs
which is then used by the GISel passes for the CSEMIRBuilder.

This support will be used in a follow up commit to allow constant-only CSE for
-O0 compiles in D60580.

Details

Committed
aemersonApr 14 2019, 9:53 PM
Parents
rL358367: llvm-undname: Fix oss-fuzz-foudn crash-on-invalid with incomplete special table…
Branches
Unknown
Tags
Unknown