[IR] Allow attributes with global variables

Description

[IR] Allow attributes with global variables

This patch extends llvm-ir to allow attributes to be set on global variables.
An RFC was sent out earlier by my colleague James Molloy: http://lists.llvm.org/pipermail/cfe-dev/2017-March/053100.html
A key part of that proposal was to extend LLVM-IR to carry attributes on global variables.
This generic feature could be useful for multiple purposes.
In our present context, it would be useful to carry user specified sections for bss/rodata/data.

Reviewed by: Jonathan Roelofs, Reid Kleckner
Differential Revision: https://reviews.llvm.org/D32009

Details

Committed
javed.absarMay 11 2017, 5:28 AM
Differential Revision
D32009: Allow attributes with global variables
Parents
rL302793: [GlobalISel][X86] Remove hand-written G_FADD/F_SUB selection.
Branches
Unknown
Tags
Unknown