Closed maxgillett closed 1 year ago
May I kindly ask your preference over GlobalISel and SelectionDAG as the driver of the code generator ?
May I kindly ask your preference over GlobalISel and SelectionDAG as the driver of the code generator ?
My understanding is that GlobalISel is expected to eventually replace SelectionDAG, and is easier to work with (both in LOC required to implement code generation, and in testing). What is your opinion, and are there pitfalls that I'm overlooking?
I'm 100% go into GlobalISel since it is more easier to debug and test with.
and are there pitfalls that I'm overlooking?
One of the minor drawbacks when I was working on it in 2021 was the lack of certain pattern matching support from TableGen, which didn't bother since you can write with C++.
Fixed in 4e20325
Compiling the following program using the command
llc func.ll --global-isel --march=delendum --stop-after=legalizer
:results in a memory exception when
LegalizeRuleSet::getAlias
is called.