This patch is mainly to propogate location attribute from spv.GlobalVariable to llvm.mlir.global. I keep the current parse and print approach of location since I feel that it is the autogen's direction.
It also contains three small changes. I cannot test spirv binary->spirv dialect -> llvm dialect without them. But it seems that we don't have test for spirv binary->mlir, so I did add tests.
- Remove the restriction on UniformConstant In SPIRVToLLVM.cpp;
- Remove the errorCheck on relaxedPrecision when deserializering SPIR-V in Deserializer.cpp
- In SPIRVOps.cpp, let ConstantOp takes signedInteger too.
co-authered: Alan Liu <alanliu.yf@gmail.com> and Xinyi Liu <xyliuhelen@gmail.com>
Nit: if (