Introduce the llvm.arm.hint(i32) intrinsic that can be used to inject hints into
the instruction stream. This is particularly useful for generating IR from a
compiler where the user may inject an intrinsic (e.g. __yield). These are then
pattern substituted into the correct instruction which already existed.
Details
Details
- Reviewers
t.p.northover abdulras
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Saleem,
It mostly looks straightforward, but I'd make the patterns more generic: hints 0-5 already have defined meanings, but the whole point of the instruction is that it's more generic than that. There's no particular reason to exclude any number in the space.
Cheers.
Tim.
lib/Target/ARM/ARMInstrInfo.td | ||
---|---|---|
1845–1850 | I'd put the pattern into the generic HINT instruction: hints 0-5 have fairly tied down meanings, but the whole point of the mechanism is that it's more generic than that. |
I'd put the pattern into the generic HINT instruction: hints 0-5 have fairly tied down meanings, but the whole point of the mechanism is that it's more generic than that.