Work on some SM5 opcodes plus ld_ms, uge and ult.

Fixes for countbits, firstbit, bfrev, bfi and reflecting resource
dimensions.
Support more opcodes: uge, ult, ld_ms, ubfe, ibfe,
atomic_and/iadd/or/xor/imax/imin/umax/umin/cmp_store.
Removed some unused variables.
Fix release build of test apps.
Update REFLECT_RESOURCE_DIMENSION to match D3D11_SRV_DIMENSION.
 ot
D3D11_SRV_DIMENSION
Removed unused functions from hlsl_opcode_funcs.
Line ending changes
Merge master into ComputeShader
Thread group shared memory shouldn't be a constant.
Fix indentation of barrier instructions.