Skip to content
Unverified Commit 96e473a6 authored by Pierre van Houtryve's avatar Pierre van Houtryve Committed by GitHub
Browse files

[RFC][GlobalISel] Use Builders in MatchTable (#65955)

The MatchTableExecutor did not use the MachineIRBuilder but instead
created instructions ad-hoc.
Making it use a Builder has the benefit that any observer added by a
combine is now notified when instructions are created by MIR patterns.

Another benefit is that it allows me to improve how constants are
created in apply MIR patterns.
`MachineIRBuilder::buildConstant` automatically handles splats for us,
this means that we may change `addCImm` to use that and handle vector
cases automatically.
parent 94d0a3c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment