This PR adds the support for the SV_Target semantic and improved the diagnostics when the stage is correct, but the direction is disallowed. This PR will require #168735 to be merged first.
CBufferAccess/gep-ce-two-uses.ll
(setcc (and X, 1), 0, eq)
XORI (and X, 1), 1