HomePhabricator

[NVPTX] Handle addrspacecast constant expressions in aggregate initializers

Description

[NVPTX] Handle addrspacecast constant expressions in aggregate initializers

We need to track if an AddrSpaceCast expression was seen when
generating an MCExpr for a ConstantExpr. This change introduces a
custom lowerConstant method to the NVPTX asm printer that will create
NVPTXGenericMCSymbolRefExpr nodes at the appropriate places to encode
the information that a given symbol needs to be casted to a generic
address.

Details

Committed
jholewinskiApr 28 2015, 10:18 AM
Parents
rL235999: Fix some preprocessor directives that were generating warnings in the test…
Branches
Unknown
Tags
Unknown