[DirectX] Set TiledResources for instruction LOD clamps (#241046)
Fixes https://github.com/llvm/llvm-project/issues/116131
Sample, SampleBias and SampleGrad with an instruction LOD clamp need
D3D12 tiled resources tier 2, and therefore the TiledResources shader
flag in DXIL. LLVM only set the flag for extracted buffer load status.
This PR sets the flag for the `dx.resource.sample.clamp`,
`samplebias.clamp` and
`samplegrad.clamp` intrinsics when the clamp operand is neither a
constant
zero nor undef.
As with DXC, the flag is set if and only if the validator version is 1.8
or later, since validator 1.7 and below do not expect it for LOD clamps.
Assisted by: Claude Opus 5.5
---------
Co-authored-by: joaosaffran <joaosaffran@gmail.com>