Andrew Savonichev d420110a1e [NVPTX] Fix constant expression initializers for global variables
Before this patch the code in printScalarConstant was unable to handle
nested constant expressions like (gep (addrspacecast ptr)) and crashed
with:

LLVM ERROR: Unsupported expression in static initializer:
  addrspacecast ([4 x i8] addrspace(1)* @ga to [4 x i8]*)

We can use lowerConstantForGV instead which is a customized version of
lowerConstant that supports generic() and nested expressions.

Differential Revision: https://reviews.llvm.org/D127878
2022-10-04 00:29:42 +03:00
..
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-07-12 07:58:13 -07:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00
2022-04-28 14:59:45 +03:00