Allow register binding attribute on variables.
Report warning when register binding attribute applies to local variable or static variable.
It will be ignored in this case.
Type check for register binding is tracked with https://github.com/llvm/llvm-project/issues/57886.
Let's assert we're in HLSL mode here so that we don't accidentally call this from non-HLSL parsing contexts.