mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Harden the verifier to check that the block argument type matches the operand type, when present. This was overlooked when transform dialect types were introduced. Fix the builders to preserve the insertion point before creating the block, otherwise the insertion point is updated to be within the block by `createBlock` and never reset to be after the sequence op itself, leading all following operations to be created in the unexpected to the caller place. Reviewed By: chelini, springerm Differential Revision: https://reviews.llvm.org/D139427