HomePhabricator

[NVPTX] Allow undef value as global initializer

Authored by jingyue on Aug 21 2015, 10:40 PM.

Description

[NVPTX] Allow undef value as global initializer

Summary:
shared variable may now emit undef value as initializer, do not
throw error on that.

Test Plan: test/CodeGen/NVPTX/global-addrspace.ll

Patch by Xuetian Weng

Reviewers: jholewinski, tra, jingyue

Subscribers: llvm-commits, jholewinski

Differential Revision: http://reviews.llvm.org/D12242

llvm-svn: 245785

Details

Committed
jingyueAug 21 2015, 10:40 PM
Differential Revision
D12242: [NVPTX] Allow undef value as global initializer
Parents
rG4369a3f4ad5c: Revert r245770 and r245777.
Branches
Unknown
Tags
Unknown