[llvm] r247378 - [opaque pointer type] Add textual IR support for explicit type parameter for global aliases

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 20:22:05 PDT 2015


Author: dblaikie
Date: Thu Sep 10 22:22:04 2015
New Revision: 247378

URL: http://llvm.org/viewvc/llvm-project?rev=247378&view=rev
Log:
[opaque pointer type] Add textual IR support for explicit type parameter for global aliases

update.py:
import fileinput
import sys
import re

alias_match_prefix = r"(.*(?:=|:|^)\s*(?:external |)(?:(?:private|internal|linkonce|linkonce_odr|weak|weak_odr|common|appending|extern_weak|available_externally) )?(?:default |hidden |protected )?(?:dllimport |dllexport )?(?:unnamed_addr |)(?:thread_local(?:\([a-z]*\))? )?alias"
plain = re.compile(alias_match_prefix + r" (.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|addrspacecast|\[\[[a-zA-Z]|\{\{).*$)")
cast  = re.compile(alias_match_prefix + r") ((?:bitcast|inttoptr|addrspacecast)\s*\(.* to (.*?)(| addrspace\(\d+\) *)\*\)\s*(?:;.*)?$)")
gep   = re.compile(alias_match_prefix + r") ((?:getelementptr)\s*(?:inbounds)?\s*\((?P<type>.*), (?P=type)(?:\s*addrspace\(\d+\)\s*)?\* .*\)\s*(?:;.*)?$)")

def conv(line):
  m = re.match(cast, line)
  if m:
    return m.group(1) + " " + m.group(3) + ", " + m.group(2)
  m = re.match(gep, line)
  if m:
    return m.group(1) + " " + m.group(3) + ", " + m.group(2)
  m = re.match(plain, line)
  if m:
    return m.group(1) + ", " + m.group(2) + m.group(3) + "*" + m.group(4) + "\n"
  return line

for line in sys.stdin:
  sys.stdout.write(conv(line))

apply.sh:
for name in "$@"
do
  python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
  rm -f "$name.tmp"
done

The actual commands:
>From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
>From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
>From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh

Added:
    llvm/trunk/test/Assembler/invalid-alias-mismatched-explicit-type.ll
Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp
    llvm/trunk/lib/IR/AsmWriter.cpp
    llvm/trunk/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll
    llvm/trunk/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll
    llvm/trunk/test/Assembler/2007-09-10-AliasFwdRef.ll
    llvm/trunk/test/Assembler/ConstantExprNoFold.ll
    llvm/trunk/test/Assembler/addrspacecast-alias.ll
    llvm/trunk/test/Assembler/alias-redefinition.ll
    llvm/trunk/test/Assembler/alias-use-list-order.ll
    llvm/trunk/test/Assembler/anon-functions.ll
    llvm/trunk/test/Assembler/internal-hidden-alias.ll
    llvm/trunk/test/Assembler/internal-protected-alias.ll
    llvm/trunk/test/Assembler/invalid-fwdref2.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-duplicated.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-one.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-ordered.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-range.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toofew.ll
    llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toomany.ll
    llvm/trunk/test/Assembler/private-hidden-alias.ll
    llvm/trunk/test/Assembler/private-protected-alias.ll
    llvm/trunk/test/Assembler/unnamed-alias.ll
    llvm/trunk/test/Assembler/uselistorder.ll
    llvm/trunk/test/Bitcode/compatibility-3.6.ll
    llvm/trunk/test/Bitcode/compatibility-3.7.ll
    llvm/trunk/test/Bitcode/compatibility.ll
    llvm/trunk/test/Bitcode/highLevelStructure.3.2.ll
    llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll
    llvm/trunk/test/Bitcode/old-aliases.ll
    llvm/trunk/test/Bitcode/use-list-order.ll
    llvm/trunk/test/BugPoint/replace-funcs-with-null.ll
    llvm/trunk/test/CodeGen/AArch64/global-alignment.ll
    llvm/trunk/test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll
    llvm/trunk/test/CodeGen/ARM/aliases.ll
    llvm/trunk/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll
    llvm/trunk/test/CodeGen/Mips/tls-alias.ll
    llvm/trunk/test/CodeGen/PowerPC/alias.ll
    llvm/trunk/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
    llvm/trunk/test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll
    llvm/trunk/test/CodeGen/X86/2008-03-14-SpillerCrash.ll
    llvm/trunk/test/CodeGen/X86/aliases.ll
    llvm/trunk/test/CodeGen/X86/avx512-mask-bugfix.ll   (contents, props changed)
    llvm/trunk/test/CodeGen/X86/coff-comdat.ll
    llvm/trunk/test/CodeGen/X86/dllexport-x86_64.ll
    llvm/trunk/test/CodeGen/X86/dllexport.ll
    llvm/trunk/test/CodeGen/X86/fast-isel-emutls.ll
    llvm/trunk/test/CodeGen/X86/fast-isel-tls.ll
    llvm/trunk/test/CodeGen/X86/pr22019.ll
    llvm/trunk/test/CodeGen/X86/shift-avx2-crash.ll   (contents, props changed)
    llvm/trunk/test/CodeGen/X86/x86-64-pic-10.ll
    llvm/trunk/test/CodeGen/XCore/aliases.ll
    llvm/trunk/test/DebugInfo/X86/elf-names.ll
    llvm/trunk/test/DebugInfo/X86/pr12831.ll
    llvm/trunk/test/DebugInfo/X86/sret.ll
    llvm/trunk/test/Feature/alias2.ll
    llvm/trunk/test/Feature/aliases.ll
    llvm/trunk/test/Feature/comdat.ll
    llvm/trunk/test/Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll
    llvm/trunk/test/Instrumentation/DataFlowSanitizer/abilist.ll
    llvm/trunk/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll
    llvm/trunk/test/Linker/2008-03-05-AliasReference.ll
    llvm/trunk/test/Linker/2008-07-06-AliasFnDecl.ll
    llvm/trunk/test/Linker/2008-07-06-AliasWeakDest.ll
    llvm/trunk/test/Linker/Inputs/PR8300.b.ll
    llvm/trunk/test/Linker/Inputs/alias.ll
    llvm/trunk/test/Linker/Inputs/comdat5.ll
    llvm/trunk/test/Linker/Inputs/comdat8.ll
    llvm/trunk/test/Linker/Inputs/type-unique-alias.ll
    llvm/trunk/test/Linker/Inputs/visibility.ll
    llvm/trunk/test/Linker/alias.ll
    llvm/trunk/test/Linker/comdat6.ll
    llvm/trunk/test/Linker/comdat8.ll
    llvm/trunk/test/Linker/comdat9.ll
    llvm/trunk/test/Linker/constructor-comdat.ll
    llvm/trunk/test/Linker/pr21494.ll
    llvm/trunk/test/Linker/type-unique-alias.ll
    llvm/trunk/test/Linker/unnamed-addr1-a.ll
    llvm/trunk/test/Linker/unnamed-addr1-b.ll
    llvm/trunk/test/Linker/visibility.ll
    llvm/trunk/test/Object/X86/nm-ir.ll
    llvm/trunk/test/Other/extract-alias.ll
    llvm/trunk/test/Other/llvm-nm-without-aliases.ll
    llvm/trunk/test/SymbolRewriter/rewrite.ll
    llvm/trunk/test/Transforms/ConstantMerge/merge-both.ll
    llvm/trunk/test/Transforms/GVN/2009-03-10-PREOnVoid.ll
    llvm/trunk/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
    llvm/trunk/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll
    llvm/trunk/test/Transforms/GlobalDCE/pr20981.ll
    llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll
    llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
    llvm/trunk/test/Transforms/GlobalOpt/alias-resolve.ll
    llvm/trunk/test/Transforms/GlobalOpt/alias-used-address-space.ll
    llvm/trunk/test/Transforms/GlobalOpt/alias-used-section.ll
    llvm/trunk/test/Transforms/GlobalOpt/alias-used.ll
    llvm/trunk/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll
    llvm/trunk/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll
    llvm/trunk/test/Transforms/InstCombine/alias-recursion.ll
    llvm/trunk/test/Transforms/InstCombine/bitcast-alias-function.ll
    llvm/trunk/test/Transforms/InstCombine/constant-fold-alias.ll
    llvm/trunk/test/Transforms/InstCombine/objsize-address-space.ll
    llvm/trunk/test/Transforms/InstCombine/objsize.ll
    llvm/trunk/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
    llvm/trunk/test/Transforms/Internalize/comdat.ll
    llvm/trunk/test/Transforms/Internalize/local-visibility.ll
    llvm/trunk/test/Transforms/LowerBitSets/function.ll
    llvm/trunk/test/Transforms/LowerBitSets/simple.ll
    llvm/trunk/test/Transforms/MetaRenamer/metarenamer.ll
    llvm/trunk/test/Transforms/SCCP/global-alias-constprop.ll
    llvm/trunk/test/Verifier/alias.ll
    llvm/trunk/test/Verifier/bitcast-alias-address-space.ll
    llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll
    llvm/trunk/test/tools/gold/X86/alias.ll
    llvm/trunk/test/tools/gold/X86/bad-alias.ll
    llvm/trunk/test/tools/gold/X86/comdat.ll
    llvm/trunk/test/tools/llvm-split/alias.ll

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Thu Sep 10 22:22:04 2015
@@ -678,6 +678,12 @@ bool LLParser::ParseAlias(const std::str
     return Error(NameLoc,
                  "symbol with local linkage must have default visibility");
 
+  Type *Ty;
+  LocTy ExplicitTypeLoc = Lex.getLoc();
+  if (ParseType(Ty) ||
+      ParseToken(lltok::comma, "expected comma after alias's type"))
+    return true;
+
   Constant *Aliasee;
   LocTy AliaseeLoc = Lex.getLoc();
   if (Lex.getKind() != lltok::kw_bitcast &&
@@ -701,6 +707,11 @@ bool LLParser::ParseAlias(const std::str
   if (!PTy)
     return Error(AliaseeLoc, "An alias must have pointer type");
 
+  if (Ty != PTy->getElementType())
+    return Error(
+        ExplicitTypeLoc,
+        "explicit pointee type doesn't match operand's pointee type");
+
   // Okay, create the alias but do not insert it into the module yet.
   std::unique_ptr<GlobalAlias> GA(
       GlobalAlias::create(PTy, (GlobalValue::LinkageTypes)Linkage, Name,

Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Thu Sep 10 22:22:04 2015
@@ -2409,6 +2409,10 @@ void AssemblyWriter::printAlias(const Gl
 
   Out << "alias ";
 
+  TypePrinter.print(GA->getValueType(), Out);
+
+  Out << ", ";
+
   const Constant *Aliasee = GA->getAliasee();
 
   if (!Aliasee) {

Modified: llvm/trunk/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll (original)
+++ llvm/trunk/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll Thu Sep 10 22:22:04 2015
@@ -9,7 +9,7 @@ target triple = "x86_64-unknown-linux-gn
         %struct.usb_hcd = type { %struct.usb_bus, i64, [0 x i64] }
 @uhci_pci_ids = constant [1 x %struct.pci_device_id] zeroinitializer
 
- at __mod_pci_device_table = alias [1 x %struct.pci_device_id]* @uhci_pci_ids     
+ at __mod_pci_device_table = alias [1 x %struct.pci_device_id], [1 x %struct.pci_device_id]* @uhci_pci_ids     
         ; <[1 x %struct.pci_device_id]*> [#uses=0]
 
 define i32 @uhci_suspend(%struct.usb_hcd* %hcd) {

Modified: llvm/trunk/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll (original)
+++ llvm/trunk/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll Thu Sep 10 22:22:04 2015
@@ -9,7 +9,7 @@ target triple = "x86_64-unknown-linux-gn
 	%struct.usb_hcd = type { %struct.usb_bus, [0 x i64] }
 @pci_ids = constant [1 x %struct.pci_device_id] zeroinitializer
 
- at __mod_pci_device_table = alias [1 x %struct.pci_device_id]* @pci_ids		; <[1 x %struct.pci_device_id]*> [#uses=0]
+ at __mod_pci_device_table = alias [1 x %struct.pci_device_id], [1 x %struct.pci_device_id]* @pci_ids		; <[1 x %struct.pci_device_id]*> [#uses=0]
 
 define i32 @ehci_pci_setup(%struct.usb_hcd* %hcd) {
 entry:

Modified: llvm/trunk/test/Assembler/2007-09-10-AliasFwdRef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2007-09-10-AliasFwdRef.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/2007-09-10-AliasFwdRef.ll (original)
+++ llvm/trunk/test/Assembler/2007-09-10-AliasFwdRef.ll Thu Sep 10 22:22:04 2015
@@ -3,7 +3,7 @@
 ; PR1645
 
 @__gthread_active_ptr.5335 = internal constant i8* bitcast (i32 (i32)* @__gthrw_pthread_cancel to i8*)    
- at __gthrw_pthread_cancel = weak alias i32 (i32)* @pthread_cancel
+ at __gthrw_pthread_cancel = weak alias i32 (i32), i32 (i32)* @pthread_cancel
 
 
 

Modified: llvm/trunk/test/Assembler/ConstantExprNoFold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/ConstantExprNoFold.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/ConstantExprNoFold.ll (original)
+++ llvm/trunk/test/Assembler/ConstantExprNoFold.ll Thu Sep 10 22:22:04 2015
@@ -43,8 +43,8 @@ target datalayout = "p:32:32"
 @empty.cmp = global i1 icmp eq ([0 x i8]* @empty.1, [0 x i8]* @empty.2)
 
 ; Don't add an inbounds on @glob.a3, since it's not inbounds.
-; CHECK: @glob.a3 = alias getelementptr (i32, i32* @glob.a2, i32 1)
+; CHECK: @glob.a3 = alias i32, getelementptr (i32, i32* @glob.a2, i32 1)
 @glob = global i32 0
- at glob.a3 = alias getelementptr (i32, i32* @glob.a2, i32 1)
- at glob.a2 = alias getelementptr (i32, i32* @glob.a1, i32 1)
- at glob.a1 = alias i32* @glob
+ at glob.a3 = alias i32, getelementptr (i32, i32* @glob.a2, i32 1)
+ at glob.a2 = alias i32, getelementptr (i32, i32* @glob.a1, i32 1)
+ at glob.a1 = alias i32, i32* @glob

Modified: llvm/trunk/test/Assembler/addrspacecast-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/addrspacecast-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/addrspacecast-alias.ll (original)
+++ llvm/trunk/test/Assembler/addrspacecast-alias.ll Thu Sep 10 22:22:04 2015
@@ -4,5 +4,5 @@
 ; Test that global aliases are allowed to be constant addrspacecast
 
 @i = internal addrspace(1) global i8 42
- at ia = internal alias addrspacecast (i8 addrspace(1)* @i to i8 addrspace(2)* addrspace(3)*)
-; CHECK: @ia = internal alias addrspacecast (i8 addrspace(2)* addrspace(1)* bitcast (i8 addrspace(1)* @i to i8 addrspace(2)* addrspace(1)*) to i8 addrspace(2)* addrspace(3)*)
+ at ia = internal alias i8 addrspace(2)*, addrspacecast (i8 addrspace(1)* @i to i8 addrspace(2)* addrspace(3)*)
+; CHECK: @ia = internal alias i8 addrspace(2)*, addrspacecast (i8 addrspace(2)* addrspace(1)* bitcast (i8 addrspace(1)* @i to i8 addrspace(2)* addrspace(1)*) to i8 addrspace(2)* addrspace(3)*)

Modified: llvm/trunk/test/Assembler/alias-redefinition.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/alias-redefinition.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/alias-redefinition.ll (original)
+++ llvm/trunk/test/Assembler/alias-redefinition.ll Thu Sep 10 22:22:04 2015
@@ -3,5 +3,5 @@
 ; CHECK: error: redefinition of global named '@bar'
 
 @foo = global i32 0
- at bar = alias i32* @foo
- at bar = alias i32* @foo
+ at bar = alias i32, i32* @foo
+ at bar = alias i32, i32* @foo

Modified: llvm/trunk/test/Assembler/alias-use-list-order.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/alias-use-list-order.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/alias-use-list-order.ll (original)
+++ llvm/trunk/test/Assembler/alias-use-list-order.ll Thu Sep 10 22:22:04 2015
@@ -6,6 +6,6 @@
 @alias.ref2 = global i32* getelementptr inbounds (i32, i32* @alias, i64 1)
 
 ; Aliases.
- at alias = alias i32* @global
- at alias.ref3 = alias i32* getelementptr inbounds (i32, i32* @alias, i64 1)
- at alias.ref4 = alias i32* getelementptr inbounds (i32, i32* @alias, i64 1)
+ at alias = alias i32, i32* @global
+ at alias.ref3 = alias i32, getelementptr inbounds (i32, i32* @alias, i64 1)
+ at alias.ref4 = alias i32, getelementptr inbounds (i32, i32* @alias, i64 1)

Modified: llvm/trunk/test/Assembler/anon-functions.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/anon-functions.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/anon-functions.ll (original)
+++ llvm/trunk/test/Assembler/anon-functions.ll Thu Sep 10 22:22:04 2015
@@ -5,8 +5,8 @@
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 target triple = "x86_64-unknown-linux-gnu"
 
- at f = alias void ()* @0		; <void ()*> [#uses=0]
- at g = alias void ()* @1		; <void ()*> [#uses=0]
+ at f = alias void (), void ()* @0		; <void ()*> [#uses=0]
+ at g = alias void (), void ()* @1		; <void ()*> [#uses=0]
 @h = external global void ()* 		; <void ()*> [#uses=0]
 
 define internal void @0() nounwind {

Modified: llvm/trunk/test/Assembler/internal-hidden-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/internal-hidden-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/internal-hidden-alias.ll (original)
+++ llvm/trunk/test/Assembler/internal-hidden-alias.ll Thu Sep 10 22:22:04 2015
@@ -2,5 +2,5 @@
 
 @global = global i32 0
 
- at alias = internal hidden alias i32* @global
+ at alias = internal hidden alias i32, i32* @global
 ; CHECK: symbol with local linkage must have default visibility

Modified: llvm/trunk/test/Assembler/internal-protected-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/internal-protected-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/internal-protected-alias.ll (original)
+++ llvm/trunk/test/Assembler/internal-protected-alias.ll Thu Sep 10 22:22:04 2015
@@ -2,5 +2,5 @@
 
 @global = global i32 0
 
- at alias = internal protected alias i32* @global
+ at alias = internal protected alias i32, i32* @global
 ; CHECK: symbol with local linkage must have default visibility

Added: llvm/trunk/test/Assembler/invalid-alias-mismatched-explicit-type.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-alias-mismatched-explicit-type.ll?rev=247378&view=auto
==============================================================================
--- llvm/trunk/test/Assembler/invalid-alias-mismatched-explicit-type.ll (added)
+++ llvm/trunk/test/Assembler/invalid-alias-mismatched-explicit-type.ll Thu Sep 10 22:22:04 2015
@@ -0,0 +1,4 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+; CHECK: <stdin>:4:12: error: explicit pointee type doesn't match operand's pointee type
+ at y = global i2 0
+ at x = alias i1, i2* @y

Modified: llvm/trunk/test/Assembler/invalid-fwdref2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-fwdref2.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-fwdref2.ll (original)
+++ llvm/trunk/test/Assembler/invalid-fwdref2.ll Thu Sep 10 22:22:04 2015
@@ -1,4 +1,4 @@
 ; RUN: not llvm-as %s -disable-output 2>&1 | grep "forward reference and definition of global have different types"
 
- at a2 = alias void ()* @g2
+ at a2 = alias void (), void ()* @g2
 @g2 = internal global i8 42

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-duplicated.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-duplicated.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-duplicated.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-duplicated.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: expected distinct uselistorder indexes in range [0, size)
 @global = global i32 0
- at alias1 = alias i32* @global
- at alias2 = alias i32* @global
- at alias3 = alias i32* @global
+ at alias1 = alias i32, i32* @global
+ at alias2 = alias i32, i32* @global
+ at alias3 = alias i32, i32* @global
 uselistorder i32* @global, { 0, 0, 2 }

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-one.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-one.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-one.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-one.ll Thu Sep 10 22:22:04 2015
@@ -1,5 +1,5 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: value only has one use
 @global = global i32 0
- at alias = alias i32* @global
+ at alias = alias i32, i32* @global
 uselistorder i32* @global, { 1, 0 }

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-ordered.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-ordered.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-ordered.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-ordered.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: expected uselistorder indexes to change the order
 @global = global i32 0
- at alias1 = alias i32* @global
- at alias2 = alias i32* @global
- at alias3 = alias i32* @global
+ at alias1 = alias i32, i32* @global
+ at alias2 = alias i32, i32* @global
+ at alias3 = alias i32, i32* @global
 uselistorder i32* @global, { 0, 1, 2 }

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-range.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-range.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-range.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-range.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: expected distinct uselistorder indexes in range [0, size)
 @global = global i32 0
- at alias1 = alias i32* @global
- at alias2 = alias i32* @global
- at alias3 = alias i32* @global
+ at alias1 = alias i32, i32* @global
+ at alias2 = alias i32, i32* @global
+ at alias3 = alias i32, i32* @global
 uselistorder i32* @global, { 0, 3, 1 }

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toofew.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toofew.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toofew.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toofew.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: wrong number of indexes, expected 3
 @global = global i32 0
- at alias1 = alias i32* @global
- at alias2 = alias i32* @global
- at alias3 = alias i32* @global
+ at alias1 = alias i32, i32* @global
+ at alias2 = alias i32, i32* @global
+ at alias3 = alias i32, i32* @global
 uselistorder i32* @global, { 1, 0 }

Modified: llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toomany.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toomany.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toomany.ll (original)
+++ llvm/trunk/test/Assembler/invalid-uselistorder-indexes-toomany.ll Thu Sep 10 22:22:04 2015
@@ -1,6 +1,6 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 ; CHECK: error: wrong number of indexes, expected 2
 @global = global i32 0
- at alias1 = alias i32* @global
- at alias2 = alias i32* @global
+ at alias1 = alias i32, i32* @global
+ at alias2 = alias i32, i32* @global
 uselistorder i32* @global, { 1, 0, 2 }

Modified: llvm/trunk/test/Assembler/private-hidden-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/private-hidden-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/private-hidden-alias.ll (original)
+++ llvm/trunk/test/Assembler/private-hidden-alias.ll Thu Sep 10 22:22:04 2015
@@ -2,5 +2,5 @@
 
 @global = global i32 0
 
- at alias = private hidden alias i32* @global
+ at alias = private hidden alias i32, i32* @global
 ; CHECK: symbol with local linkage must have default visibility

Modified: llvm/trunk/test/Assembler/private-protected-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/private-protected-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/private-protected-alias.ll (original)
+++ llvm/trunk/test/Assembler/private-protected-alias.ll Thu Sep 10 22:22:04 2015
@@ -2,5 +2,5 @@
 
 @global = global i32 0
 
- at alias = private protected alias i32* @global
+ at alias = private protected alias i32, i32* @global
 ; CHECK: symbol with local linkage must have default visibility

Modified: llvm/trunk/test/Assembler/unnamed-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/unnamed-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/unnamed-alias.ll (original)
+++ llvm/trunk/test/Assembler/unnamed-alias.ll Thu Sep 10 22:22:04 2015
@@ -5,7 +5,7 @@
 @1 = private constant i32 1
 ; CHECK: @1 = private constant i32 1
 
- at 2 = private alias i32* @0
-; CHECK: @2 = private alias i32* @0
- at 3 = private alias i32* @1
-; CHECK: @3 = private alias i32* @1
+ at 2 = private alias i32, i32* @0
+; CHECK: @2 = private alias i32, i32* @0
+ at 3 = private alias i32, i32* @1
+; CHECK: @3 = private alias i32, i32* @1

Modified: llvm/trunk/test/Assembler/uselistorder.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/uselistorder.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/uselistorder.ll (original)
+++ llvm/trunk/test/Assembler/uselistorder.ll Thu Sep 10 22:22:04 2015
@@ -4,7 +4,7 @@
 ; RUN: verify-uselistorder < %s
 
 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1]
- at b = alias getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
+ at b = alias i1, getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
 
 ; Check use-list order of constants used by globals.
 @glob1 = global i5 7

Modified: llvm/trunk/test/Bitcode/compatibility-3.6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility-3.6.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility-3.6.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility-3.6.ll Thu Sep 10 22:22:04 2015
@@ -174,52 +174,52 @@ declare void @g.f1()
 ;                   [unnamed_addr] alias <AliaseeTy> @<Aliasee>
 
 ; Aliases -- Linkage
- at a.private = private alias i32* @g.private
-; CHECK: @a.private = private alias i32* @g.private
- at a.internal = internal alias i32* @g.internal
-; CHECK: @a.internal = internal alias i32* @g.internal
- at a.linkonce = linkonce alias i32* @g.linkonce
-; CHECK: @a.linkonce = linkonce alias i32* @g.linkonce
- at a.weak = weak alias i32* @g.weak
-; CHECK: @a.weak = weak alias i32* @g.weak
- at a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
-; CHECK: @a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
- at a.weak_odr = weak_odr alias i32* @g.weak_odr
-; CHECK: @a.weak_odr = weak_odr alias i32* @g.weak_odr
- at a.external = external alias i32* @g1
-; CHECK: @a.external = alias i32* @g1
+ at a.private = private alias i32, i32* @g.private
+; CHECK: @a.private = private alias i32, i32* @g.private
+ at a.internal = internal alias i32, i32* @g.internal
+; CHECK: @a.internal = internal alias i32, i32* @g.internal
+ at a.linkonce = linkonce alias i32, i32* @g.linkonce
+; CHECK: @a.linkonce = linkonce alias i32, i32* @g.linkonce
+ at a.weak = weak alias i32, i32* @g.weak
+; CHECK: @a.weak = weak alias i32, i32* @g.weak
+ at a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+; CHECK: @a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+ at a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+; CHECK: @a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+ at a.external = external alias i32, i32* @g1
+; CHECK: @a.external = alias i32, i32* @g1
 
 ; Aliases -- Visibility
- at a.default = default alias i32* @g.default
-; CHECK: @a.default = alias i32* @g.default
- at a.hidden = hidden alias i32* @g.hidden
-; CHECK: @a.hidden = hidden alias i32* @g.hidden
- at a.protected = protected alias i32* @g.protected
-; CHECK: @a.protected = protected alias i32* @g.protected
+ at a.default = default alias i32, i32* @g.default
+; CHECK: @a.default = alias i32, i32* @g.default
+ at a.hidden = hidden alias i32, i32* @g.hidden
+; CHECK: @a.hidden = hidden alias i32, i32* @g.hidden
+ at a.protected = protected alias i32, i32* @g.protected
+; CHECK: @a.protected = protected alias i32, i32* @g.protected
 
 ; Aliases -- DLLStorageClass
- at a.dlldefault = default alias i32* @g.dlldefault
-; CHECK: @a.dlldefault = alias i32* @g.dlldefault
- at a.dllimport = dllimport alias i32* @g1
-; CHECK: @a.dllimport = dllimport alias i32* @g1
- at a.dllexport = dllexport alias i32* @g.dllexport
-; CHECK: @a.dllexport = dllexport alias i32* @g.dllexport
+ at a.dlldefault = default alias i32, i32* @g.dlldefault
+; CHECK: @a.dlldefault = alias i32, i32* @g.dlldefault
+ at a.dllimport = dllimport alias i32, i32* @g1
+; CHECK: @a.dllimport = dllimport alias i32, i32* @g1
+ at a.dllexport = dllexport alias i32, i32* @g.dllexport
+; CHECK: @a.dllexport = dllexport alias i32, i32* @g.dllexport
 
 ; Aliases -- ThreadLocal
- at a.notthreadlocal = alias i32* @g.notthreadlocal
-; CHECK: @a.notthreadlocal = alias i32* @g.notthreadlocal
- at a.generaldynamic = thread_local alias i32* @g.generaldynamic
-; CHECK: @a.generaldynamic = thread_local alias i32* @g.generaldynamic
- at a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
-; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
- at a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
-; CHECK: @a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
- at a.localexec = thread_local(localexec) alias i32* @g.localexec
-; CHECK: @a.localexec = thread_local(localexec) alias i32* @g.localexec
+ at a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+; CHECK: @a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+ at a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+; CHECK: @a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+ at a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+ at a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+; CHECK: @a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+ at a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
+; CHECK: @a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
 
 ; Aliases -- unnamed_addr
- at a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
-; CHECK: @a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
+ at a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
+; CHECK: @a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
 
 ;; Functions
 ; Format: define [linkage] [visibility] [DLLStorageClass]

Modified: llvm/trunk/test/Bitcode/compatibility-3.7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility-3.7.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility-3.7.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility-3.7.ll Thu Sep 10 22:22:04 2015
@@ -174,52 +174,52 @@ declare void @g.f1()
 ;                   [unnamed_addr] alias <AliaseeTy> @<Aliasee>
 
 ; Aliases -- Linkage
- at a.private = private alias i32* @g.private
-; CHECK: @a.private = private alias i32* @g.private
- at a.internal = internal alias i32* @g.internal
-; CHECK: @a.internal = internal alias i32* @g.internal
- at a.linkonce = linkonce alias i32* @g.linkonce
-; CHECK: @a.linkonce = linkonce alias i32* @g.linkonce
- at a.weak = weak alias i32* @g.weak
-; CHECK: @a.weak = weak alias i32* @g.weak
- at a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
-; CHECK: @a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
- at a.weak_odr = weak_odr alias i32* @g.weak_odr
-; CHECK: @a.weak_odr = weak_odr alias i32* @g.weak_odr
- at a.external = external alias i32* @g1
-; CHECK: @a.external = alias i32* @g1
+ at a.private = private alias i32, i32* @g.private
+; CHECK: @a.private = private alias i32, i32* @g.private
+ at a.internal = internal alias i32, i32* @g.internal
+; CHECK: @a.internal = internal alias i32, i32* @g.internal
+ at a.linkonce = linkonce alias i32, i32* @g.linkonce
+; CHECK: @a.linkonce = linkonce alias i32, i32* @g.linkonce
+ at a.weak = weak alias i32, i32* @g.weak
+; CHECK: @a.weak = weak alias i32, i32* @g.weak
+ at a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+; CHECK: @a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+ at a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+; CHECK: @a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+ at a.external = external alias i32, i32* @g1
+; CHECK: @a.external = alias i32, i32* @g1
 
 ; Aliases -- Visibility
- at a.default = default alias i32* @g.default
-; CHECK: @a.default = alias i32* @g.default
- at a.hidden = hidden alias i32* @g.hidden
-; CHECK: @a.hidden = hidden alias i32* @g.hidden
- at a.protected = protected alias i32* @g.protected
-; CHECK: @a.protected = protected alias i32* @g.protected
+ at a.default = default alias i32, i32* @g.default
+; CHECK: @a.default = alias i32, i32* @g.default
+ at a.hidden = hidden alias i32, i32* @g.hidden
+; CHECK: @a.hidden = hidden alias i32, i32* @g.hidden
+ at a.protected = protected alias i32, i32* @g.protected
+; CHECK: @a.protected = protected alias i32, i32* @g.protected
 
 ; Aliases -- DLLStorageClass
- at a.dlldefault = default alias i32* @g.dlldefault
-; CHECK: @a.dlldefault = alias i32* @g.dlldefault
- at a.dllimport = dllimport alias i32* @g1
-; CHECK: @a.dllimport = dllimport alias i32* @g1
- at a.dllexport = dllexport alias i32* @g.dllexport
-; CHECK: @a.dllexport = dllexport alias i32* @g.dllexport
+ at a.dlldefault = default alias i32, i32* @g.dlldefault
+; CHECK: @a.dlldefault = alias i32, i32* @g.dlldefault
+ at a.dllimport = dllimport alias i32, i32* @g1
+; CHECK: @a.dllimport = dllimport alias i32, i32* @g1
+ at a.dllexport = dllexport alias i32, i32* @g.dllexport
+; CHECK: @a.dllexport = dllexport alias i32, i32* @g.dllexport
 
 ; Aliases -- ThreadLocal
- at a.notthreadlocal = alias i32* @g.notthreadlocal
-; CHECK: @a.notthreadlocal = alias i32* @g.notthreadlocal
- at a.generaldynamic = thread_local alias i32* @g.generaldynamic
-; CHECK: @a.generaldynamic = thread_local alias i32* @g.generaldynamic
- at a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
-; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
- at a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
-; CHECK: @a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
- at a.localexec = thread_local(localexec) alias i32* @g.localexec
-; CHECK: @a.localexec = thread_local(localexec) alias i32* @g.localexec
+ at a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+; CHECK: @a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+ at a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+; CHECK: @a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+ at a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+ at a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+; CHECK: @a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+ at a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
+; CHECK: @a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
 
 ; Aliases -- unnamed_addr
- at a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
-; CHECK: @a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
+ at a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
+; CHECK: @a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
 
 ;; Functions
 ; Format: define [linkage] [visibility] [DLLStorageClass]

Modified: llvm/trunk/test/Bitcode/compatibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility.ll Thu Sep 10 22:22:04 2015
@@ -176,52 +176,52 @@ declare void @g.f1()
 ;                   [unnamed_addr] alias <AliaseeTy> @<Aliasee>
 
 ; Aliases -- Linkage
- at a.private = private alias i32* @g.private
-; CHECK: @a.private = private alias i32* @g.private
- at a.internal = internal alias i32* @g.internal
-; CHECK: @a.internal = internal alias i32* @g.internal
- at a.linkonce = linkonce alias i32* @g.linkonce
-; CHECK: @a.linkonce = linkonce alias i32* @g.linkonce
- at a.weak = weak alias i32* @g.weak
-; CHECK: @a.weak = weak alias i32* @g.weak
- at a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
-; CHECK: @a.linkonce_odr = linkonce_odr alias i32* @g.linkonce_odr
- at a.weak_odr = weak_odr alias i32* @g.weak_odr
-; CHECK: @a.weak_odr = weak_odr alias i32* @g.weak_odr
- at a.external = external alias i32* @g1
-; CHECK: @a.external = alias i32* @g1
+ at a.private = private alias i32, i32* @g.private
+; CHECK: @a.private = private alias i32, i32* @g.private
+ at a.internal = internal alias i32, i32* @g.internal
+; CHECK: @a.internal = internal alias i32, i32* @g.internal
+ at a.linkonce = linkonce alias i32, i32* @g.linkonce
+; CHECK: @a.linkonce = linkonce alias i32, i32* @g.linkonce
+ at a.weak = weak alias i32, i32* @g.weak
+; CHECK: @a.weak = weak alias i32, i32* @g.weak
+ at a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+; CHECK: @a.linkonce_odr = linkonce_odr alias i32, i32* @g.linkonce_odr
+ at a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+; CHECK: @a.weak_odr = weak_odr alias i32, i32* @g.weak_odr
+ at a.external = external alias i32, i32* @g1
+; CHECK: @a.external = alias i32, i32* @g1
 
 ; Aliases -- Visibility
- at a.default = default alias i32* @g.default
-; CHECK: @a.default = alias i32* @g.default
- at a.hidden = hidden alias i32* @g.hidden
-; CHECK: @a.hidden = hidden alias i32* @g.hidden
- at a.protected = protected alias i32* @g.protected
-; CHECK: @a.protected = protected alias i32* @g.protected
+ at a.default = default alias i32, i32* @g.default
+; CHECK: @a.default = alias i32, i32* @g.default
+ at a.hidden = hidden alias i32, i32* @g.hidden
+; CHECK: @a.hidden = hidden alias i32, i32* @g.hidden
+ at a.protected = protected alias i32, i32* @g.protected
+; CHECK: @a.protected = protected alias i32, i32* @g.protected
 
 ; Aliases -- DLLStorageClass
- at a.dlldefault = default alias i32* @g.dlldefault
-; CHECK: @a.dlldefault = alias i32* @g.dlldefault
- at a.dllimport = dllimport alias i32* @g1
-; CHECK: @a.dllimport = dllimport alias i32* @g1
- at a.dllexport = dllexport alias i32* @g.dllexport
-; CHECK: @a.dllexport = dllexport alias i32* @g.dllexport
+ at a.dlldefault = default alias i32, i32* @g.dlldefault
+; CHECK: @a.dlldefault = alias i32, i32* @g.dlldefault
+ at a.dllimport = dllimport alias i32, i32* @g1
+; CHECK: @a.dllimport = dllimport alias i32, i32* @g1
+ at a.dllexport = dllexport alias i32, i32* @g.dllexport
+; CHECK: @a.dllexport = dllexport alias i32, i32* @g.dllexport
 
 ; Aliases -- ThreadLocal
- at a.notthreadlocal = alias i32* @g.notthreadlocal
-; CHECK: @a.notthreadlocal = alias i32* @g.notthreadlocal
- at a.generaldynamic = thread_local alias i32* @g.generaldynamic
-; CHECK: @a.generaldynamic = thread_local alias i32* @g.generaldynamic
- at a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
-; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32* @g.localdynamic
- at a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
-; CHECK: @a.initialexec = thread_local(initialexec) alias i32* @g.initialexec
- at a.localexec = thread_local(localexec) alias i32* @g.localexec
-; CHECK: @a.localexec = thread_local(localexec) alias i32* @g.localexec
+ at a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+; CHECK: @a.notthreadlocal = alias i32, i32* @g.notthreadlocal
+ at a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+; CHECK: @a.generaldynamic = thread_local alias i32, i32* @g.generaldynamic
+ at a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+; CHECK: @a.localdynamic = thread_local(localdynamic) alias i32, i32* @g.localdynamic
+ at a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+; CHECK: @a.initialexec = thread_local(initialexec) alias i32, i32* @g.initialexec
+ at a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
+; CHECK: @a.localexec = thread_local(localexec) alias i32, i32* @g.localexec
 
 ; Aliases -- unnamed_addr
- at a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
-; CHECK: @a.unnamed_addr = unnamed_addr alias i32* @g.unnamed_addr
+ at a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
+; CHECK: @a.unnamed_addr = unnamed_addr alias i32, i32* @g.unnamed_addr
 
 ;; Functions
 ; Format: define [linkage] [visibility] [DLLStorageClass]

Modified: llvm/trunk/test/Bitcode/highLevelStructure.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/highLevelStructure.3.2.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/highLevelStructure.3.2.ll (original)
+++ llvm/trunk/test/Bitcode/highLevelStructure.3.2.ll Thu Sep 10 22:22:04 2015
@@ -19,16 +19,16 @@ module asm "some assembly"
 ; Aliases Test
 ; CHECK: @glob1 = global i32 1
 @glob1 = global i32 1
-; CHECK: @aliased1 = alias i32* @glob1
- at aliased1 = alias i32* @glob1
-; CHECK-NEXT: @aliased2 = internal alias i32* @glob1
- at aliased2 = internal alias i32* @glob1
-; CHECK-NEXT: @aliased3 = alias i32* @glob1
- at aliased3 = external alias i32* @glob1
-; CHECK-NEXT: @aliased4 = weak alias i32* @glob1
- at aliased4 = weak alias i32* @glob1
-; CHECK-NEXT: @aliased5 = weak_odr alias i32* @glob1
- at aliased5 = weak_odr alias i32* @glob1
+; CHECK: @aliased1 = alias i32, i32* @glob1
+ at aliased1 = alias i32, i32* @glob1
+; CHECK-NEXT: @aliased2 = internal alias i32, i32* @glob1
+ at aliased2 = internal alias i32, i32* @glob1
+; CHECK-NEXT: @aliased3 = alias i32, i32* @glob1
+ at aliased3 = external alias i32, i32* @glob1
+; CHECK-NEXT: @aliased4 = weak alias i32, i32* @glob1
+ at aliased4 = weak alias i32, i32* @glob1
+; CHECK-NEXT: @aliased5 = weak_odr alias i32, i32* @glob1
+ at aliased5 = weak_odr alias i32, i32* @glob1
 
 ;Parameter Attribute Test
 ; CHECK: declare void @ParamAttr1(i8 zeroext)

Modified: llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll (original)
+++ llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll Thu Sep 10 22:22:04 2015
@@ -25,23 +25,23 @@
 
 @global = global i32 0
 
- at default.internal.alias = alias internal i32* @global
-; CHECK: @default.internal.alias = internal alias i32* @global
+ at default.internal.alias = alias internal i32, internal i32* @global
+; CHECK: @default.internal.alias = internal alias i32, i32* @global
 
- at hidden.internal.alias = hidden alias internal i32* @global
-; CHECK: @hidden.internal.alias = internal alias i32* @global
+ at hidden.internal.alias = hidden alias internal i32, internal i32* @global
+; CHECK: @hidden.internal.alias = internal alias i32, i32* @global
 
- at protected.internal.alias = protected alias internal i32* @global
-; CHECK: @protected.internal.alias = internal alias i32* @global
+ at protected.internal.alias = protected alias internal i32, internal i32* @global
+; CHECK: @protected.internal.alias = internal alias i32, i32* @global
 
- at default.private.alias = alias private i32* @global
-; CHECK: @default.private.alias = private alias i32* @global
+ at default.private.alias = alias private i32, private i32* @global
+; CHECK: @default.private.alias = private alias i32, i32* @global
 
- at hidden.private.alias = hidden alias private i32* @global
-; CHECK: @hidden.private.alias = private alias i32* @global
+ at hidden.private.alias = hidden alias private i32, private i32* @global
+; CHECK: @hidden.private.alias = private alias i32, i32* @global
 
- at protected.private.alias = protected alias private i32* @global
-; CHECK: @protected.private.alias = private alias i32* @global
+ at protected.private.alias = protected alias private i32, private i32* @global
+; CHECK: @protected.private.alias = private alias i32, i32* @global
 
 define internal void @default.internal() {
 ; CHECK: define internal void @default.internal

Modified: llvm/trunk/test/Bitcode/old-aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/old-aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/old-aliases.ll (original)
+++ llvm/trunk/test/Bitcode/old-aliases.ll Thu Sep 10 22:22:04 2015
@@ -10,14 +10,14 @@
 @v2 = global [1 x i32] zeroinitializer
 ; CHECK: @v2 = global [1 x i32] zeroinitializer
 
- at v3 = alias bitcast (i32* @v1 to i16*)
-; CHECK: @v3 = alias bitcast (i32* @v1 to i16*)
+ at v3 = alias i16, bitcast (i32* @v1 to i16*)
+; CHECK: @v3 = alias i16, bitcast (i32* @v1 to i16*)
 
- at v4 = alias getelementptr ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
-; CHECK: @v4 = alias getelementptr inbounds ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
+ at v4 = alias i32, getelementptr ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
+; CHECK: @v4 = alias i32, getelementptr inbounds ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
 
- at v5 = alias i32 addrspace(2)* addrspacecast (i32 addrspace(0)* @v1 to i32 addrspace(2)*)
-; CHECK: @v5 = alias addrspacecast (i32* @v1 to i32 addrspace(2)*)
+ at v5 = alias i32, i32 addrspace(2)* addrspacecast (i32 addrspace(0)* @v1 to i32 addrspace(2)*)
+; CHECK: @v5 = alias i32, addrspacecast (i32* @v1 to i32 addrspace(2)*)
 
- at v6 = alias i16* @v3
-; CHECK: @v6 = alias i16* @v3
+ at v6 = alias i16, i16* @v3
+; CHECK: @v6 = alias i16, i16* @v3

Modified: llvm/trunk/test/Bitcode/use-list-order.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/use-list-order.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/use-list-order.ll (original)
+++ llvm/trunk/test/Bitcode/use-list-order.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: verify-uselistorder < %s
 
 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1]
- at b = alias i1* getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
+ at b = alias i1, getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
 
 ; Check use-list order of constants used by globals.
 @glob1 = global i5 7
@@ -10,9 +10,9 @@
 
 ; Check use-list order between variables and aliases.
 @target = global i3 zeroinitializer
- at alias1 = alias i3* @target
- at alias2 = alias i3* @target
- at alias3 = alias i3* @target
+ at alias1 = alias i3, i3* @target
+ at alias2 = alias i3, i3* @target
+ at alias3 = alias i3, i3* @target
 @var1 = global i3* @target
 @var2 = global i3* @target
 @var3 = global i3* @target
@@ -31,9 +31,9 @@
 
 ; Same as above, but for aliases.
 @const.target = global i62 1
- at const.alias = alias i62* @const.target
- at const.alias.ptr = alias i62* @const.alias
- at const.alias.2 = alias i62* @const.target
+ at const.alias = alias i62, i62* @const.target
+ at const.alias.ptr = alias i62, i62* @const.alias
+ at const.alias.2 = alias i62, i62* @const.target
 
 define i64 @f(i64 %f) {
 entry:

Modified: llvm/trunk/test/BugPoint/replace-funcs-with-null.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/replace-funcs-with-null.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/replace-funcs-with-null.ll (original)
+++ llvm/trunk/test/BugPoint/replace-funcs-with-null.ll Thu Sep 10 22:22:04 2015
@@ -3,7 +3,7 @@
 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
 ; REQUIRES: loadable_module
 
- at foo2 = alias i32 ()* @foo
+ at foo2 = alias i32 (), i32 ()* @foo
 
 define i32 @foo() { ret i32 1 }
 

Modified: llvm/trunk/test/CodeGen/AArch64/global-alignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/global-alignment.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/global-alignment.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/global-alignment.ll Thu Sep 10 22:22:04 2015
@@ -3,7 +3,7 @@
 @var32 = global [3 x i32] zeroinitializer
 @var64 = global [3 x i64] zeroinitializer
 @var32_align64 = global [3 x i32] zeroinitializer, align 8
- at alias = alias [3 x i32]* @var32_align64
+ at alias = alias [3 x i32], [3 x i32]* @var32_align64
 
 define i64 @test_align32() {
 ; CHECK-LABEL: test_align32:

Modified: llvm/trunk/test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll Thu Sep 10 22:22:04 2015
@@ -20,7 +20,7 @@
 @.str51 = external constant [45 x i8]             ; <[45 x i8]*> [#uses=1]
 @__PRETTY_FUNCTION__._ZNK4llvm7VarInit12getFieldInitERNS_6RecordEPKNS_9RecordValERKSs = external constant [116 x i8] ; <[116 x i8]*> [#uses=1]
 
- at _ZN4llvm9RecordValC1ERKSsPNS_5RecTyEj = alias void (%"class.llvm::RecordVal"*, %"class.std::basic_string"*, %"struct.llvm::Init"*, i32)* @_ZN4llvm9RecordValC2ERKSsPNS_5RecTyEj ; <void (%"class.llvm::RecordVal"*, %"class.std::basic_string"*, %"struct.llvm::Init"*, i32)*> [#uses=0]
+ at _ZN4llvm9RecordValC1ERKSsPNS_5RecTyEj = alias void (%"class.llvm::RecordVal"*, %"class.std::basic_string"*, %"struct.llvm::Init"*, i32), void (%"class.llvm::RecordVal"*, %"class.std::basic_string"*, %"struct.llvm::Init"*, i32)* @_ZN4llvm9RecordValC2ERKSsPNS_5RecTyEj ; <void (%"class.llvm::RecordVal"*, %"class.std::basic_string"*, %"struct.llvm::Init"*, i32)*> [#uses=0]
 
 declare i8* @__dynamic_cast(i8*, i8*, i8*, i32)
 

Modified: llvm/trunk/test/CodeGen/ARM/aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/aliases.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/aliases.ll Thu Sep 10 22:22:04 2015
@@ -33,23 +33,23 @@
 ; CHECK: .size elem1, 4
 
 @bar = global i32 42
- at foo1 = alias i32* @bar
- at foo2 = alias i32* @bar
+ at foo1 = alias i32, i32* @bar
+ at foo2 = alias i32, i32* @bar
 
 %FunTy = type i32()
 
 define i32 @foo_f() {
   ret i32 0
 }
- at bar_f = weak alias %FunTy* @foo_f
+ at bar_f = weak alias %FunTy, %FunTy* @foo_f
 
- at bar_i = internal alias i32* @bar
+ at bar_i = internal alias i32, i32* @bar
 
- at A = alias bitcast (i32* @bar to i64*)
+ at A = alias i64, bitcast (i32* @bar to i64*)
 
 @structvar = private global {i32, i32} {i32 1, i32 2}
- at elem0 = alias getelementptr({i32, i32}, {i32, i32}*  @structvar, i32 0, i32 0)
- at elem1 = alias getelementptr({i32, i32}, {i32, i32}*  @structvar, i32 0, i32 1)
+ at elem0 = alias i32, getelementptr({i32, i32}, {i32, i32}*  @structvar, i32 0, i32 0)
+ at elem1 = alias i32, getelementptr({i32, i32}, {i32, i32}*  @structvar, i32 0, i32 1)
 
 define i32 @test() {
 entry:

Modified: llvm/trunk/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll Thu Sep 10 22:22:04 2015
@@ -30,20 +30,20 @@
 	%"struct.qdesigner_internal::GridLayout" = type { %"struct.qdesigner_internal::Layout", %"struct.QPair<int,int>", %"struct.qdesigner_internal::Grid"* }
 	%"struct.qdesigner_internal::Layout" = type { %struct.QObject, %"struct.QList<QAbstractExtensionFactory*>", %struct.QWidget*, %"struct.QHash<QString,QList<QAbstractExtensionFactory*> >", %struct.QWidget*, %struct.QDesignerFormWindowInterface*, i8, %"struct.QPair<int,int>", %struct.QRect, i8 }
 
- at _ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
- at _ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32)* @pthread_getspecific		; <i8* (i32)*> [#uses=0]
- at _ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*)* @pthread_setspecific		; <i32 (i32, i8*)*> [#uses=0]
- at _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = weak alias i32 (i64*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create		; <i32 (i64*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)*> [#uses=0]
- at _ZL22__gthrw_pthread_cancelm = weak alias i32 (i64)* @pthread_cancel		; <i32 (i64)*> [#uses=0]
- at _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init		; <i32 (%struct.pthread_mutex_t*, %struct.Alignment*)*> [#uses=0]
- at _ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*)* @pthread_key_create		; <i32 (i32*, void (i8*)*)*> [#uses=0]
- at _ZL26__gthrw_pthread_key_deletej = weak alias i32 (i32)* @pthread_key_delete		; <i32 (i32)*> [#uses=0]
- at _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = weak alias i32 (%struct.Alignment*)* @pthread_mutexattr_init		; <i32 (%struct.Alignment*)*> [#uses=0]
- at _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = weak alias i32 (%struct.Alignment*, i32)* @pthread_mutexattr_settype		; <i32 (%struct.Alignment*, i32)*> [#uses=0]
- at _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = weak alias i32 (%struct.Alignment*)* @pthread_mutexattr_destroy		; <i32 (%struct.Alignment*)*> [#uses=0]
+ at _ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
+ at _ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32), i8* (i32)* @pthread_getspecific		; <i8* (i32)*> [#uses=0]
+ at _ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*), i32 (i32, i8*)* @pthread_setspecific		; <i32 (i32, i8*)*> [#uses=0]
+ at _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = weak alias i32 (i64*, %struct.pthread_attr_t*, i8* (i8*)*, i8*), i32 (i64*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create		; <i32 (i64*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)*> [#uses=0]
+ at _ZL22__gthrw_pthread_cancelm = weak alias i32 (i64), i32 (i64)* @pthread_cancel		; <i32 (i64)*> [#uses=0]
+ at _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct.pthread_mutex_t*, %struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init		; <i32 (%struct.pthread_mutex_t*, %struct.Alignment*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*), i32 (i32*, void (i8*)*)* @pthread_key_create		; <i32 (i32*, void (i8*)*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_key_deletej = weak alias i32 (i32), i32 (i32)* @pthread_key_delete		; <i32 (i32)*> [#uses=0]
+ at _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_init		; <i32 (%struct.Alignment*)*> [#uses=0]
+ at _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = weak alias i32 (%struct.Alignment*, i32), i32 (%struct.Alignment*, i32)* @pthread_mutexattr_settype		; <i32 (%struct.Alignment*, i32)*> [#uses=0]
+ at _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = weak alias i32 (%struct.Alignment*), i32 (%struct.Alignment*)* @pthread_mutexattr_destroy		; <i32 (%struct.Alignment*)*> [#uses=0]
 
 define void @_ZN18qdesigner_internal10GridLayout9buildGridEv(%"struct.qdesigner_internal::GridLayout"* %this) nounwind {
 entry:

Modified: llvm/trunk/test/CodeGen/Mips/tls-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/tls-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/tls-alias.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/tls-alias.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: llc -march=mipsel -relocation-model=pic -disable-mips-delay-filler < %s | FileCheck %s
 
 @foo = thread_local global i32 42
- at bar = hidden thread_local alias i32* @foo
+ at bar = hidden thread_local alias i32, i32* @foo
 
 define i32* @zed() {
 ; CHECK-DAG: __tls_get_addr

Modified: llvm/trunk/test/CodeGen/PowerPC/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/alias.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/alias.ll Thu Sep 10 22:22:04 2015
@@ -2,10 +2,10 @@
 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=large | FileCheck --check-prefix=CHECK --check-prefix=LARGE %s
 
 @foo = global i32 42
- at fooa = alias i32* @foo
+ at fooa = alias i32, i32* @foo
 
 @foo2 = global i64 42
- at foo2a = alias i64* @foo2
+ at foo2a = alias i64, i64* @foo2
 
 ; CHECK-LABEL: bar:
 define i32 @bar() {

Modified: llvm/trunk/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll Thu Sep 10 22:22:04 2015
@@ -1,6 +1,6 @@
 ; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s
 
- at __gthrw_pthread_once = weak alias i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
+ at __gthrw_pthread_once = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
 
 define weak i32 @pthread_once(i32*, void ()*) {
   ret i32 0

Modified: llvm/trunk/test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll Thu Sep 10 22:22:04 2015
@@ -8,7 +8,7 @@ target triple = "i386-pc-linux-gnu"
 @__resp = thread_local global %struct.__res_state* @_res		; <%struct.__res_state**> [#uses=1]
 @_res = global %struct.__res_state zeroinitializer, section ".bss"		; <%struct.__res_state*> [#uses=1]
 
- at __libc_resp = hidden thread_local alias %struct.__res_state** @__resp		; <%struct.__res_state**> [#uses=2]
+ at __libc_resp = hidden thread_local alias %struct.__res_state*, %struct.__res_state** @__resp		; <%struct.__res_state**> [#uses=2]
 
 define i32 @foo() {
 ; CHECK-LABEL: foo:

Modified: llvm/trunk/test/CodeGen/X86/2008-03-14-SpillerCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2008-03-14-SpillerCrash.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2008-03-14-SpillerCrash.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2008-03-14-SpillerCrash.ll Thu Sep 10 22:22:04 2015
@@ -6,7 +6,7 @@
 	%struct.locale_data = type { i8*, i8*, i32, i32, { void (%struct.locale_data*)*, %struct.anon }, i32, i32, i32, [0 x %struct.locale_data_value] }
 	%struct.locale_data_value = type { i32* }
 
- at wcstoll_l = alias i64 (i32*, i32**, i32, %struct.__locale_struct*)* @__wcstoll_l
+ at wcstoll_l = alias i64 (i32*, i32**, i32, %struct.__locale_struct*), i64 (i32*, i32**, i32, %struct.__locale_struct*)* @__wcstoll_l
 
 define i64 @____wcstoll_l_internal(i32* %nptr, i32** %endptr, i32 %base, i32 %group, %struct.__locale_struct* %loc) nounwind  {
 entry:

Modified: llvm/trunk/test/CodeGen/X86/aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/aliases.ll (original)
+++ llvm/trunk/test/CodeGen/X86/aliases.ll Thu Sep 10 22:22:04 2015
@@ -2,7 +2,7 @@
 ; RUN: -relocation-model=pic | FileCheck %s
 
 @thread_var = thread_local global i32 42, align 4
- at thread_alias = thread_local(localdynamic) alias i32* @thread_var
+ at thread_alias = thread_local(localdynamic) alias i32, i32* @thread_var
 
 ; CHECK-LABEL: get_thread_var
 define i32* @get_thread_var() {
@@ -19,10 +19,10 @@ define i32* @get_thread_alias() {
 @bar = global i32 42
 
 ; CHECK-DAG: .globl	foo1
- at foo1 = alias i32* @bar
+ at foo1 = alias i32, i32* @bar
 
 ; CHECK-DAG: .globl	foo2
- at foo2 = alias i32* @bar
+ at foo2 = alias i32, i32* @bar
 
 %FunTy = type i32()
 
@@ -30,35 +30,35 @@ define i32 @foo_f() {
   ret i32 0
 }
 ; CHECK-DAG: .weak	bar_f
- at bar_f = weak alias %FunTy* @foo_f
+ at bar_f = weak alias %FunTy, %FunTy* @foo_f
 
- at bar_l = linkonce_odr alias i32* @bar
+ at bar_l = linkonce_odr alias i32, i32* @bar
 ; CHECK-DAG: .weak	bar_l
 
- at bar_i = internal alias i32* @bar
+ at bar_i = internal alias i32, i32* @bar
 
 ; CHECK-DAG: .globl	A
- at A = alias bitcast (i32* @bar to i64*)
+ at A = alias i64, bitcast (i32* @bar to i64*)
 
 ; CHECK-DAG: .globl	bar_h
 ; CHECK-DAG: .hidden	bar_h
- at bar_h = hidden alias i32* @bar
+ at bar_h = hidden alias i32, i32* @bar
 
 ; CHECK-DAG: .globl	bar_p
 ; CHECK-DAG: .protected	bar_p
- at bar_p = protected alias i32* @bar
+ at bar_p = protected alias i32, i32* @bar
 
 ; CHECK-DAG: test2 = bar+4
- at test2 = alias getelementptr(i32, i32* @bar, i32 1)
+ at test2 = alias i32, getelementptr(i32, i32* @bar, i32 1)
 
 ; CHECK-DAG: test3 = 42
- at test3 = alias inttoptr(i32 42 to i32*)
+ at test3 = alias i32, inttoptr(i32 42 to i32*)
 
 ; CHECK-DAG: test4 = bar
- at test4 = alias inttoptr(i64 ptrtoint (i32* @bar to i64) to i32*)
+ at test4 = alias i32, inttoptr(i64 ptrtoint (i32* @bar to i64) to i32*)
 
 ; CHECK-DAG: test5 = test2-bar
- at test5 = alias inttoptr(i32 sub (i32 ptrtoint (i32* @test2 to i32),
+ at test5 = alias i32, inttoptr(i32 sub (i32 ptrtoint (i32* @test2 to i32),
                                  i32 ptrtoint (i32* @bar to i32)) to i32*)
 
 ; CHECK-DAG: .globl	test

Modified: llvm/trunk/test/CodeGen/X86/avx512-mask-bugfix.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-mask-bugfix.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
    (empty)

Propchange: llvm/trunk/test/CodeGen/X86/avx512-mask-bugfix.ll
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable (removed)
@@ -1 +0,0 @@
-*

Modified: llvm/trunk/test/CodeGen/X86/coff-comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/coff-comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/coff-comdat.ll (original)
+++ llvm/trunk/test/CodeGen/X86/coff-comdat.ll Thu Sep 10 22:22:04 2015
@@ -53,7 +53,7 @@ define x86_fastcallcc void @f8() comdat(
 $vftable = comdat largest
 
 @some_name = private unnamed_addr constant [2 x i8*] zeroinitializer, comdat($vftable)
- at vftable = alias getelementptr([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
+ at vftable = alias i8*, getelementptr([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
 
 ; CHECK: .section        .text,"xr",discard,_f1
 ; CHECK: .globl  _f1

Modified: llvm/trunk/test/CodeGen/X86/dllexport-x86_64.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/dllexport-x86_64.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/dllexport-x86_64.ll (original)
+++ llvm/trunk/test/CodeGen/X86/dllexport-x86_64.ll Thu Sep 10 22:22:04 2015
@@ -53,22 +53,22 @@ define weak_odr dllexport void @weak1()
 
 ; CHECK: .globl alias
 ; CHECK: alias = notExported
- at alias = dllexport alias void()* @notExported
+ at alias = dllexport alias void(), void()* @notExported
 
 ; CHECK: .globl alias2
 ; CHECK: alias2 = f1
- at alias2 = dllexport alias void()* @f1
+ at alias2 = dllexport alias void(), void()* @f1
 
 ; CHECK: .globl alias3
 ; CHECK: alias3 = notExported
- at alias3 = dllexport alias void()* @notExported
+ at alias3 = dllexport alias void(), void()* @notExported
 
 ; CHECK: .weak weak_alias
 ; CHECK: weak_alias = f1
- at weak_alias = weak_odr dllexport alias void()* @f1
+ at weak_alias = weak_odr dllexport alias void(), void()* @f1
 
 @blob = global [6 x i8] c"\B8*\00\00\00\C3", section ".text", align 16
- at blob_alias = dllexport alias bitcast ([6 x i8]* @blob to i32 ()*)
+ at blob_alias = dllexport alias i32 (), bitcast ([6 x i8]* @blob to i32 ()*)
 
 ; CHECK: .section .drectve
 ; WIN32: /EXPORT:f1

Modified: llvm/trunk/test/CodeGen/X86/dllexport.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/dllexport.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/dllexport.ll (original)
+++ llvm/trunk/test/CodeGen/X86/dllexport.ll Thu Sep 10 22:22:04 2015
@@ -74,19 +74,19 @@ define weak_odr dllexport void @weak1()
 
 ; CHECK: .globl _alias
 ; CHECK: _alias = _notExported
- at alias = dllexport alias void()* @notExported
+ at alias = dllexport alias void(), void()* @notExported
 
 ; CHECK: .globl _alias2
 ; CHECK: _alias2 = _f1
- at alias2 = dllexport alias void()* @f1
+ at alias2 = dllexport alias void(), void()* @f1
 
 ; CHECK: .globl _alias3
 ; CHECK: _alias3 = _notExported
- at alias3 = dllexport alias void()* @notExported
+ at alias3 = dllexport alias void(), void()* @notExported
 
 ; CHECK: .weak _weak_alias
 ; CHECK: _weak_alias = _f1
- at weak_alias = weak_odr dllexport alias void()* @f1
+ at weak_alias = weak_odr dllexport alias void(), void()* @f1
 
 ; CHECK: .section .drectve
 ; CHECK-CL-NOT: not_exported

Modified: llvm/trunk/test/CodeGen/X86/fast-isel-emutls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-emutls.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-emutls.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-emutls.ll Thu Sep 10 22:22:04 2015
@@ -15,7 +15,7 @@ entry:
 ; CHECK-NEXT: calll __emutls_get_address at PLT
 ; CHECK-NEXT: movl (%eax), %eax
 
- at alias = internal alias i32* @v
+ at alias = internal alias i32, i32* @v
 define i32 @f_alias() nounwind {
 entry:
           %t = load i32, i32* @v

Modified: llvm/trunk/test/CodeGen/X86/fast-isel-tls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-tls.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-tls.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-tls.ll Thu Sep 10 22:22:04 2015
@@ -13,7 +13,7 @@ entry:
 ; CHECK: leal	v at TLSGD
 ; CHECK: __tls_get_addr
 
- at alias = internal alias i32* @v
+ at alias = internal alias i32, i32* @v
 define i32 @f_alias() nounwind {
 entry:
           %t = load i32, i32* @v

Modified: llvm/trunk/test/CodeGen/X86/pr22019.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr22019.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr22019.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr22019.ll Thu Sep 10 22:22:04 2015
@@ -20,4 +20,4 @@ define void @pselect() {
 @var = global i32 0
 
 ; CHECK: alias = var
- at alias = alias i32* @var
+ at alias = alias i32, i32* @var

Modified: llvm/trunk/test/CodeGen/X86/shift-avx2-crash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/shift-avx2-crash.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
    (empty)

Propchange: llvm/trunk/test/CodeGen/X86/shift-avx2-crash.ll
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable (removed)
@@ -1 +0,0 @@
-*

Modified: llvm/trunk/test/CodeGen/X86/x86-64-pic-10.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/x86-64-pic-10.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/x86-64-pic-10.ll (original)
+++ llvm/trunk/test/CodeGen/X86/x86-64-pic-10.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
 ; RUN: grep "callq	g at PLT" %t1
 
- at g = weak alias i32 ()* @f
+ at g = weak alias i32 (), i32 ()* @f
 
 define void @h() {
 entry:

Modified: llvm/trunk/test/CodeGen/XCore/aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/XCore/aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/XCore/aliases.ll (original)
+++ llvm/trunk/test/CodeGen/XCore/aliases.ll Thu Sep 10 22:22:04 2015
@@ -5,9 +5,9 @@ define void @a_val() nounwind {
 @b_val = constant i32 42, section ".cp.rodata"
 @c_val = global i32 42
 
- at a = alias void ()* @a_val
- at b = alias i32* @b_val
- at c = alias i32* @c_val
+ at a = alias void (), void ()* @a_val
+ at b = alias i32, i32* @b_val
+ at c = alias i32, i32* @c_val
 
 ; CHECK-LABEL: a_addr:
 ; CHECK: ldap r11, a

Modified: llvm/trunk/test/DebugInfo/X86/elf-names.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/elf-names.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/elf-names.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/elf-names.ll Thu Sep 10 22:22:04 2015
@@ -17,8 +17,8 @@
 
 %class.D = type { i32, i32, i32, i32 }
 
- at _ZN1DC1Ev = alias void (%class.D*)* @_ZN1DC2Ev
- at _ZN1DC1ERKS_ = alias void (%class.D*, %class.D*)* @_ZN1DC2ERKS_
+ at _ZN1DC1Ev = alias void (%class.D*), void (%class.D*)* @_ZN1DC2Ev
+ at _ZN1DC1ERKS_ = alias void (%class.D*, %class.D*), void (%class.D*, %class.D*)* @_ZN1DC2ERKS_
 
 define void @_ZN1DC2Ev(%class.D* nocapture %this) unnamed_addr nounwind uwtable align 2 {
 entry:

Modified: llvm/trunk/test/DebugInfo/X86/pr12831.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/pr12831.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/pr12831.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/pr12831.ll Thu Sep 10 22:22:04 2015
@@ -9,8 +9,8 @@ target triple = "x86_64-unknown-linux-gn
 %class.anon = type { i8 }
 %class.anon.0 = type { i8 }
 
-@"_ZN8functionIFvvEEC1IZN17BPLFunctionWriter9writeExprEvE3$_1_0EET_" = internal alias void (%class.function*)* @"_ZN8functionIFvvEEC2IZN17BPLFunctionWriter9writeExprEvE3$_1_0EET_"
-@"_ZN8functionIFvvEEC1IZN17BPLFunctionWriter9writeExprEvE3$_0EET_" = internal alias void (%class.function*)* @"_ZN8functionIFvvEEC2IZN17BPLFunctionWriter9writeExprEvE3$_0EET_"
+@"_ZN8functionIFvvEEC1IZN17BPLFunctionWriter9writeExprEvE3$_1_0EET_" = internal alias void (%class.function*), void (%class.function*)* @"_ZN8functionIFvvEEC2IZN17BPLFunctionWriter9writeExprEvE3$_1_0EET_"
+@"_ZN8functionIFvvEEC1IZN17BPLFunctionWriter9writeExprEvE3$_0EET_" = internal alias void (%class.function*), void (%class.function*)* @"_ZN8functionIFvvEEC2IZN17BPLFunctionWriter9writeExprEvE3$_0EET_"
 
 define void @_ZN17BPLFunctionWriter9writeExprEv(%class.BPLFunctionWriter* %this) nounwind uwtable align 2 {
 entry:

Modified: llvm/trunk/test/DebugInfo/X86/sret.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/sret.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/sret.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/sret.ll Thu Sep 10 22:22:04 2015
@@ -14,8 +14,8 @@
 @_ZTS1A = linkonce_odr constant [3 x i8] c"1A\00"
 @_ZTI1A = linkonce_odr constant { i8*, i8* } { i8* bitcast (i8** getelementptr inbounds (i8*, i8** @_ZTVN10__cxxabiv117__class_type_infoE, i64 2) to i8*), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @_ZTS1A, i32 0, i32 0) }
 
- at _ZN1AC1Ei = alias void (%class.A*, i32)* @_ZN1AC2Ei
- at _ZN1AC1ERKS_ = alias void (%class.A*, %class.A*)* @_ZN1AC2ERKS_
+ at _ZN1AC1Ei = alias void (%class.A*, i32), void (%class.A*, i32)* @_ZN1AC2Ei
+ at _ZN1AC1ERKS_ = alias void (%class.A*, %class.A*), void (%class.A*, %class.A*)* @_ZN1AC2ERKS_
 
 ; Function Attrs: nounwind uwtable
 define void @_ZN1AC2Ei(%class.A* %this, i32 %i) unnamed_addr #0 align 2 {

Modified: llvm/trunk/test/Feature/alias2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/alias2.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Feature/alias2.ll (original)
+++ llvm/trunk/test/Feature/alias2.ll Thu Sep 10 22:22:04 2015
@@ -9,20 +9,20 @@
 @v3 = global [2 x i16] zeroinitializer
 ; CHECK: @v3 = global [2 x i16] zeroinitializer
 
- at a1 = alias bitcast (i32* @v1 to i16*)
-; CHECK: @a1 = alias bitcast (i32* @v1 to i16*)
+ at a1 = alias i16, bitcast (i32* @v1 to i16*)
+; CHECK: @a1 = alias i16, bitcast (i32* @v1 to i16*)
 
- at a2 = alias bitcast([1 x i32]* @v2 to i32*)
-; CHECK: @a2 = alias getelementptr inbounds ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
+ at a2 = alias i32, bitcast([1 x i32]* @v2 to i32*)
+; CHECK: @a2 = alias i32, getelementptr inbounds ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
 
- at a3 = alias addrspacecast (i32* @v1 to i32 addrspace(2)*)
-; CHECK: @a3 = alias addrspacecast (i32* @v1 to i32 addrspace(2)*)
+ at a3 = alias i32, addrspacecast (i32* @v1 to i32 addrspace(2)*)
+; CHECK: @a3 = alias i32, addrspacecast (i32* @v1 to i32 addrspace(2)*)
 
- at a4 = alias bitcast (i32* @v1 to i16*)
-; CHECK: @a4 = alias bitcast (i32* @v1 to i16*)
+ at a4 = alias i16, bitcast (i32* @v1 to i16*)
+; CHECK: @a4 = alias i16, bitcast (i32* @v1 to i16*)
 
- at a5 = thread_local(localdynamic) alias i32* @v1
-; CHECK: @a5 = thread_local(localdynamic) alias i32* @v1
+ at a5 = thread_local(localdynamic) alias i32, i32* @v1
+; CHECK: @a5 = thread_local(localdynamic) alias i32, i32* @v1
 
- at a6 = alias getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)
-; CHECK: @a6 = alias getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)
+ at a6 = alias i16, getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)
+; CHECK: @a6 = alias i16, getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)

Modified: llvm/trunk/test/Feature/aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Feature/aliases.ll (original)
+++ llvm/trunk/test/Feature/aliases.ll Thu Sep 10 22:22:04 2015
@@ -5,28 +5,28 @@
 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @foo1 to i8*)], section "llvm.metadata"
 
 @bar = global i32 0
- at foo1 = alias i32* @bar
- at foo2 = alias i32* @bar
- at foo3 = alias i32* @foo2
- at foo4 = unnamed_addr alias i32* @foo2
+ at foo1 = alias i32, i32* @bar
+ at foo2 = alias i32, i32* @bar
+ at foo3 = alias i32, i32* @foo2
+ at foo4 = unnamed_addr alias i32, i32* @foo2
 
 ; Make sure the verifier does not complain about references to a global
 ; declaration from an initializer.
 @decl = external global i32
 @ptr = global i32* @decl
- at ptr_a = alias i32** @ptr
+ at ptr_a = alias i32*, i32** @ptr
 
 %FunTy = type i32()
 
 define i32 @foo_f() {
   ret i32 0
 }
- at bar_f = weak_odr alias %FunTy* @foo_f
- at bar_ff = alias i32()* @bar_f
+ at bar_f = weak_odr alias %FunTy, %FunTy* @foo_f
+ at bar_ff = alias i32(), i32()* @bar_f
 
- at bar_i = internal alias i32* @bar
+ at bar_i = internal alias i32, i32* @bar
 
- at A = alias bitcast (i32* @bar to i64*)
+ at A = alias i64, bitcast (i32* @bar to i64*)
 
 define i32 @test() {
 entry:

Modified: llvm/trunk/test/Feature/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Feature/comdat.ll (original)
+++ llvm/trunk/test/Feature/comdat.ll Thu Sep 10 22:22:04 2015
@@ -9,8 +9,8 @@ $f2 = comdat any
 @v = global i32 0, comdat($f)
 ; CHECK: @v = global i32 0, comdat($f)
 
- at a = alias i32* @v
-; CHECK: @a = alias i32* @v{{$}}
+ at a = alias i32, i32* @v
+; CHECK: @a = alias i32, i32* @v{{$}}
 
 define void @f() comdat($f) {
   ret void

Modified: llvm/trunk/test/Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll (original)
+++ llvm/trunk/test/Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll Thu Sep 10 22:22:04 2015
@@ -6,9 +6,9 @@ target triple = "i686-pc-windows-msvc"
 ; no action should be taken for these globals
 $global_noinst = comdat largest
 @aliasee = private unnamed_addr constant [2 x i8] [i8 1, i8 2], comdat($global_noinst)
- at global_noinst = unnamed_addr alias [2 x i8]* @aliasee
+ at global_noinst = unnamed_addr alias [2 x i8], [2 x i8]* @aliasee
 ; CHECK-NOT: {{asan_gen.*global_noinst}}
-; CHECK-DAG: @global_noinst = unnamed_addr alias [2 x i8]* @aliasee
+; CHECK-DAG: @global_noinst = unnamed_addr alias [2 x i8], [2 x i8]* @aliasee
 @global_inst = private constant [2 x i8] [i8 1, i8 2]
 ; CHECK-DAG: {{asan_gen.*global_inst}}
 ; CHECK: @asan.module_ctor

Modified: llvm/trunk/test/Instrumentation/DataFlowSanitizer/abilist.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/DataFlowSanitizer/abilist.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/DataFlowSanitizer/abilist.ll (original)
+++ llvm/trunk/test/Instrumentation/DataFlowSanitizer/abilist.ll Thu Sep 10 22:22:04 2015
@@ -17,7 +17,7 @@ define i32 @functional(i32 %a, i32 %b) {
 ; CHECK: %[[CALL:.*]] = call { i32 (i32, i32)*, i16 } @"dfs$g"(i32 %0, i16 0)
 ; CHECK: %[[XVAL:.*]] = extractvalue { i32 (i32, i32)*, i16 } %[[CALL]], 0
 ; CHECK: ret {{.*}} %[[XVAL]]
- at discardg = alias i32 (i32, i32)* (i32)* @g
+ at discardg = alias i32 (i32, i32)* (i32), i32 (i32, i32)* (i32)* @g
 
 declare void @custom1(i32 %a, i32 %b)
 
@@ -83,7 +83,7 @@ define i32 (i32, i32)* @g(i32) {
 ; CHECK: %[[IVAL0:.*]] = insertvalue { i32, i16 } undef, i32 %[[CALL]], 0
 ; CHECK: %[[IVAL1:.*]] = insertvalue { i32, i16 } %[[IVAL0]], i16 0, 1
 ; CHECK: ret { i32, i16 } %[[IVAL1]]
- at adiscard = alias i32 (i32, i32)* @discard
+ at adiscard = alias i32 (i32, i32), i32 (i32, i32)* @discard
 
 ; CHECK: declare void @__dfsw_custom1(i32, i32, i16, i16)
 ; CHECK: declare i32 @__dfsw_custom2(i32, i32, i16, i16, i16*)

Modified: llvm/trunk/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll (original)
+++ llvm/trunk/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll Thu Sep 10 22:22:04 2015
@@ -7,10 +7,10 @@ target triple = "x86_64-unknown-linux-gn
 module asm ".symver f1,f@@version1"
 
 ; CHECK: @"dfs$f2" = alias {{.*}} @"dfs$f1"
- at f2 = alias void ()* @f1
+ at f2 = alias void (), void ()* @f1
 
 ; CHECK: @"dfs$g2" = alias {{.*}} @"dfs$g1"
- at g2 = alias bitcast (void (i8*)* @g1 to void (i16*)*)
+ at g2 = alias void (i16*), bitcast (void (i8*)* @g1 to void (i16*)*)
 
 ; CHECK: define void @"dfs$f1"
 define void @f1() {

Modified: llvm/trunk/test/Linker/2008-03-05-AliasReference.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/2008-03-05-AliasReference.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/2008-03-05-AliasReference.ll (original)
+++ llvm/trunk/test/Linker/2008-03-05-AliasReference.ll Thu Sep 10 22:22:04 2015
@@ -8,7 +8,7 @@ target datalayout = "e-p:64:64:64-i1:8:8
 target triple = "x86_64-unknown-linux-gnu"
 @foo = weak global i32 0		; <i32*> [#uses=1]
 
- at bar = weak alias i32* @foo		; <i32*> [#uses=1]
+ at bar = weak alias i32, i32* @foo		; <i32*> [#uses=1]
 
 define i32 @baz() nounwind  {
 entry:

Modified: llvm/trunk/test/Linker/2008-07-06-AliasFnDecl.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/2008-07-06-AliasFnDecl.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/2008-07-06-AliasFnDecl.ll (original)
+++ llvm/trunk/test/Linker/2008-07-06-AliasFnDecl.ll Thu Sep 10 22:22:04 2015
@@ -3,7 +3,7 @@
 ; RUN: llvm-as %p/2008-07-06-AliasFnDecl2.ll -o %t2.bc
 ; RUN: llvm-link %t1.bc %t2.bc -o %t3.bc
 
- at b = alias void ()* @a
+ at b = alias void (), void ()* @a
 
 define void @a() nounwind  {
 entry:

Modified: llvm/trunk/test/Linker/2008-07-06-AliasWeakDest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/2008-07-06-AliasWeakDest.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/2008-07-06-AliasWeakDest.ll (original)
+++ llvm/trunk/test/Linker/2008-07-06-AliasWeakDest.ll Thu Sep 10 22:22:04 2015
@@ -7,9 +7,9 @@
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
 target triple = "i386-pc-linux-gnu"
 
- at sched_clock = alias i64 ()* @native_sched_clock
+ at sched_clock = alias i64 (), i64 ()* @native_sched_clock
 
- at foo = alias i32* @realfoo
+ at foo = alias i32, i32* @realfoo
 @realfoo = global i32 0
 
 define i64 @native_sched_clock() nounwind  {

Modified: llvm/trunk/test/Linker/Inputs/PR8300.b.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/PR8300.b.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/PR8300.b.ll (original)
+++ llvm/trunk/test/Linker/Inputs/PR8300.b.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 %foo = type { [8 x i8] }
 %bar = type { [9 x i8] }
 
- at zed = alias bitcast (void (%bar*)* @xyz to void (%foo*)*)
+ at zed = alias void (%foo*), bitcast (void (%bar*)* @xyz to void (%foo*)*)
 
 define void @xyz(%bar* %this) {
 entry:

Modified: llvm/trunk/test/Linker/Inputs/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/alias.ll (original)
+++ llvm/trunk/test/Linker/Inputs/alias.ll Thu Sep 10 22:22:04 2015
@@ -1,3 +1,3 @@
 @zed = global i32 42
- at foo = alias i32* @zed
- at foo2 = alias bitcast (i32* @zed to i16*)
+ at foo = alias i32, i32* @zed
+ at foo2 = alias i16, bitcast (i32* @zed to i16*)

Modified: llvm/trunk/test/Linker/Inputs/comdat5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/comdat5.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/comdat5.ll (original)
+++ llvm/trunk/test/Linker/Inputs/comdat5.ll Thu Sep 10 22:22:04 2015
@@ -4,6 +4,6 @@ $foo = comdat largest
 
 @zed = external constant i8
 @some_name = private unnamed_addr constant [2 x i8*] [i8* @zed, i8* bitcast (void ()* @bar to i8*)], comdat($foo)
- at foo = alias getelementptr([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
+ at foo = alias i8*, getelementptr([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
 
 declare void @bar() unnamed_addr

Modified: llvm/trunk/test/Linker/Inputs/comdat8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/comdat8.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/comdat8.ll (original)
+++ llvm/trunk/test/Linker/Inputs/comdat8.ll Thu Sep 10 22:22:04 2015
@@ -1,4 +1,4 @@
 $c1 = comdat largest
 
 @some_name = private unnamed_addr constant i32 42, comdat($c1)
- at c1 = alias i32* @some_name
+ at c1 = alias i32, i32* @some_name

Modified: llvm/trunk/test/Linker/Inputs/type-unique-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/type-unique-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/type-unique-alias.ll (original)
+++ llvm/trunk/test/Linker/Inputs/type-unique-alias.ll Thu Sep 10 22:22:04 2015
@@ -1,4 +1,4 @@
 %u = type { i8 }
 
 @g2 = global %u zeroinitializer
- at a = weak alias %u* @g2
+ at a = weak alias %u, %u* @g2

Modified: llvm/trunk/test/Linker/Inputs/visibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/visibility.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/visibility.ll (original)
+++ llvm/trunk/test/Linker/Inputs/visibility.ll Thu Sep 10 22:22:04 2015
@@ -7,9 +7,9 @@ $c1 = comdat any
 @v4 = hidden global i32 1, comdat($c1)
 
 ; Aliases
- at a1 = weak hidden alias i32* @v1
- at a2 = weak protected alias i32* @v2
- at a3 = weak hidden alias i32* @v3
+ at a1 = weak hidden alias i32, i32* @v1
+ at a2 = weak protected alias i32, i32* @v2
+ at a3 = weak hidden alias i32, i32* @v3
 
 ; Functions
 define weak hidden void @f1() {

Modified: llvm/trunk/test/Linker/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/alias.ll (original)
+++ llvm/trunk/test/Linker/alias.ll Thu Sep 10 22:22:04 2015
@@ -2,15 +2,15 @@
 ; RUN: llvm-link %S/Inputs/alias.ll %s -S -o - | FileCheck %s
 
 @foo = weak global i32 0
-; CHECK-DAG: @foo = alias i32* @zed
+; CHECK-DAG: @foo = alias i32, i32* @zed
 
- at bar = alias i32* @foo
-; CHECK-DAG: @bar = alias i32* @foo
+ at bar = alias i32, i32* @foo
+; CHECK-DAG: @bar = alias i32, i32* @foo
 
 @foo2 = weak global i32 0
-; CHECK-DAG: @foo2 = alias bitcast (i32* @zed to i16*)
+; CHECK-DAG: @foo2 = alias i16, bitcast (i32* @zed to i16*)
 
- at bar2 = alias i32* @foo2
-; CHECK-DAG: @bar2 = alias bitcast (i16* @foo2 to i32*)
+ at bar2 = alias i32, i32* @foo2
+; CHECK-DAG: @bar2 = alias i32, bitcast (i16* @foo2 to i32*)
 
 ; CHECK-DAG: @zed = global i32 42

Modified: llvm/trunk/test/Linker/comdat6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/comdat6.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/comdat6.ll (original)
+++ llvm/trunk/test/Linker/comdat6.ll Thu Sep 10 22:22:04 2015
@@ -5,6 +5,6 @@ target datalayout = "e-m:w-p:32:32-i64:6
 $foo = comdat largest
 @foo = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @bar to i8*)], comdat($foo)
 
-; CHECK: @foo = alias getelementptr inbounds ([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
+; CHECK: @foo = alias i8*, getelementptr inbounds ([2 x i8*], [2 x i8*]* @some_name, i32 0, i32 1)
 
 declare void @bar() unnamed_addr

Modified: llvm/trunk/test/Linker/comdat8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/comdat8.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/comdat8.ll (original)
+++ llvm/trunk/test/Linker/comdat8.ll Thu Sep 10 22:22:04 2015
@@ -3,6 +3,6 @@
 $c1 = comdat largest
 
 @some_name = private unnamed_addr constant i32 42, comdat($c1)
- at c1 = alias i8* inttoptr (i32 ptrtoint (i32* @some_name to i32) to i8*)
+ at c1 = alias i8, inttoptr (i32 ptrtoint (i32* @some_name to i32) to i8*)
 
 ; CHECK: COMDAT key involves incomputable alias size.

Modified: llvm/trunk/test/Linker/comdat9.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/comdat9.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/comdat9.ll (original)
+++ llvm/trunk/test/Linker/comdat9.ll Thu Sep 10 22:22:04 2015
@@ -1,13 +1,13 @@
 ; RUN: llvm-link %s -S -o - | FileCheck %s
 
 $c = comdat any
- at a = alias void ()* @f
+ at a = alias void (), void ()* @f
 define internal void @f() comdat($c) {
   ret void
 }
 
 ; CHECK-DAG: $c = comdat any
-; CHECK-DAG: @a = alias void ()* @f
+; CHECK-DAG: @a = alias void (), void ()* @f
 ; CHECK-DAG: define internal void @f() comdat($c)
 
 $f2 = comdat largest

Modified: llvm/trunk/test/Linker/constructor-comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/constructor-comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/constructor-comdat.ll (original)
+++ llvm/trunk/test/Linker/constructor-comdat.ll Thu Sep 10 22:22:04 2015
@@ -4,8 +4,8 @@
 $_ZN3fooIiEC5Ev = comdat any
 ; CHECK: $_ZN3fooIiEC5Ev = comdat any
 
- at _ZN3fooIiEC1Ev = weak_odr alias void ()* @_ZN3fooIiEC2Ev
-; CHECK: @_ZN3fooIiEC1Ev = weak_odr alias void ()* @_ZN3fooIiEC2Ev
+ at _ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
+; CHECK: @_ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
 
 ; CHECK: define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
 define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {

Modified: llvm/trunk/test/Linker/pr21494.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/pr21494.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/pr21494.ll (original)
+++ llvm/trunk/test/Linker/pr21494.ll Thu Sep 10 22:22:04 2015
@@ -6,10 +6,10 @@
 @g2 = linkonce_odr global i8 0
 ; CHECK-NOT: @g2
 
- at a1 = private alias i8* @g1
+ at a1 = private alias i8, i8* @g1
 ; CHECK-NOT: @a1
 
- at a2 = linkonce_odr alias i8* @g2
+ at a2 = linkonce_odr alias i8, i8* @g2
 ; CHECK-NOT: @a2
 
 define private void @f1() {

Modified: llvm/trunk/test/Linker/type-unique-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/type-unique-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/type-unique-alias.ll (original)
+++ llvm/trunk/test/Linker/type-unique-alias.ll Thu Sep 10 22:22:04 2015
@@ -3,8 +3,8 @@
 %t = type { i8 }
 
 @g = global %t zeroinitializer
- at a = weak alias %t* @g
+ at a = weak alias %t, %t* @g
 
 ; CHECK: @g = global %t zeroinitializer
 ; CHECK: @g2 = global %t zeroinitializer
-; CHECK: @a = weak alias %t* @g
+; CHECK: @a = weak alias %t, %t* @g

Modified: llvm/trunk/test/Linker/unnamed-addr1-a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/unnamed-addr1-a.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/unnamed-addr1-a.ll (original)
+++ llvm/trunk/test/Linker/unnamed-addr1-a.ll Thu Sep 10 22:22:04 2015
@@ -22,9 +22,9 @@ define weak void @func-b() unnamed_addr
 ; CHECK-DAG: @global-f = global i32 42
 
 @alias-a = weak global i32 42
-; CHECK-DAG: @alias-a = alias i32* @global-f
+; CHECK-DAG: @alias-a = alias i32, i32* @global-f
 @alias-b = weak unnamed_addr global i32 42
-; CHECK-DAG: @alias-b = unnamed_addr alias i32* @global-f
+; CHECK-DAG: @alias-b = unnamed_addr alias i32, i32* @global-f
 
 declare void @func-c()
 ; CHECK-DAG: define weak void @func-c() {
@@ -44,9 +44,9 @@ define weak void @func-e() unnamed_addr
 ; CHECK-DAG: @global-j = global i32 42
 
 @alias-c = weak global i32 42
-; CHECK-DAG: @alias-c = alias i32* @global-f
+; CHECK-DAG: @alias-c = alias i32, i32* @global-f
 @alias-d = weak unnamed_addr global i32 42
-; CHECK-DAG: @alias-d = alias i32* @global-f
+; CHECK-DAG: @alias-d = alias i32, i32* @global-f
 
 
 declare void @func-g()

Modified: llvm/trunk/test/Linker/unnamed-addr1-b.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/unnamed-addr1-b.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/unnamed-addr1-b.ll (original)
+++ llvm/trunk/test/Linker/unnamed-addr1-b.ll Thu Sep 10 22:22:04 2015
@@ -6,8 +6,8 @@
 @global-e = unnamed_addr global i32 42
 @global-f = unnamed_addr global i32 42
 
- at alias-a =  unnamed_addr alias i32* @global-f
- at alias-b =  unnamed_addr alias i32* @global-f
+ at alias-a =  unnamed_addr alias i32, i32* @global-f
+ at alias-b =  unnamed_addr alias i32, i32* @global-f
 
 define weak void @func-c() unnamed_addr { ret void }
 define weak void @func-d() unnamed_addr { ret void }
@@ -18,8 +18,8 @@ define weak void @func-e() unnamed_addr
 @global-i = global i32 42
 @global-j = global i32 42
 
- at alias-c =  alias i32* @global-f
- at alias-d =  alias i32* @global-f
+ at alias-c =  alias i32, i32* @global-f
+ at alias-d =  alias i32, i32* @global-f
 
 define weak void @func-g() { ret void }
 define weak void @func-h() { ret void }

Modified: llvm/trunk/test/Linker/visibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/visibility.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Linker/visibility.ll (original)
+++ llvm/trunk/test/Linker/visibility.ll Thu Sep 10 22:22:04 2015
@@ -21,14 +21,14 @@ $c1 = comdat any
 @v4 = global i32 1, comdat($c1)
 
 ; Aliases
-; CHECK: @a1 = hidden alias i32* @v1
- at a1 = alias i32* @v1
+; CHECK: @a1 = hidden alias i32, i32* @v1
+ at a1 = alias i32, i32* @v1
 
-; CHECK: @a2 = protected alias i32* @v2
- at a2 = alias i32* @v2
+; CHECK: @a2 = protected alias i32, i32* @v2
+ at a2 = alias i32, i32* @v2
 
-; CHECK: @a3 = hidden alias i32* @v3
- at a3 = protected alias i32* @v3
+; CHECK: @a3 = hidden alias i32, i32* @v3
+ at a3 = protected alias i32, i32* @v3
 
 
 ; Functions

Modified: llvm/trunk/test/Object/X86/nm-ir.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/X86/nm-ir.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Object/X86/nm-ir.ll (original)
+++ llvm/trunk/test/Object/X86/nm-ir.ll Thu Sep 10 22:22:04 2015
@@ -27,8 +27,8 @@ module asm ".long undef_asm_sym"
 @g3 = common global i32 0
 @g4 = private global i32 42
 
- at a1 = alias i32* @g1
- at a2 = internal alias i32* @g1
+ at a1 = alias i32, i32* @g1
+ at a2 = internal alias i32, i32* @g1
 
 define void @f1() {
   ret void

Modified: llvm/trunk/test/Other/extract-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/extract-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Other/extract-alias.ll (original)
+++ llvm/trunk/test/Other/extract-alias.ll Thu Sep 10 22:22:04 2015
@@ -12,10 +12,10 @@
 ; CHECK:      declare void @a0bar()
 
 ; DELETE:      @zed = global i32 0
-; DELETE:      @zeda0 = alias i32* @zed
-; DELETE-NEXT: @a0foo = alias i32* ()* @foo
-; DELETE-NEXT: @a0a0bar = alias void ()* @bar
-; DELETE-NEXT: @a0bar = alias void ()* @bar
+; DELETE:      @zeda0 = alias i32, i32* @zed
+; DELETE-NEXT: @a0foo = alias i32* (), i32* ()* @foo
+; DELETE-NEXT: @a0a0bar = alias void (), void ()* @bar
+; DELETE-NEXT: @a0bar = alias void (), void ()* @bar
 ; DELETE:      declare i32* @foo()
 ; DELETE:      define void @bar() {
 ; DELETE-NEXT:  %c = call i32* @foo()
@@ -23,25 +23,25 @@
 ; DELETE-NEXT: }
 
 ; ALIAS: @zed = external global i32
-; ALIAS: @zeda0 = alias i32* @zed
+; ALIAS: @zeda0 = alias i32, i32* @zed
 
-; ALIASRE: @a0a0bar = alias void ()* @bar
-; ALIASRE: @a0bar = alias void ()* @bar
+; ALIASRE: @a0a0bar = alias void (), void ()* @bar
+; ALIASRE: @a0bar = alias void (), void ()* @bar
 ; ALIASRE: declare void @bar()
 
 @zed = global i32 0
- at zeda0 = alias i32* @zed
+ at zeda0 = alias i32, i32* @zed
 
- at a0foo = alias i32* ()* @foo
+ at a0foo = alias i32* (), i32* ()* @foo
 
 define i32* @foo() {
   call void @a0bar()
   ret i32* @zeda0
 }
 
- at a0a0bar = alias void ()* @bar
+ at a0a0bar = alias void (), void ()* @bar
 
- at a0bar = alias void ()* @bar
+ at a0bar = alias void (), void ()* @bar
 
 define void @bar() {
   %c = call i32* @foo()

Modified: llvm/trunk/test/Other/llvm-nm-without-aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/llvm-nm-without-aliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Other/llvm-nm-without-aliases.ll (original)
+++ llvm/trunk/test/Other/llvm-nm-without-aliases.ll Thu Sep 10 22:22:04 2015
@@ -12,13 +12,13 @@
 ; WITH: T bar
 ; WITH: T foo
 
- at a0foo = alias void ()* @foo
+ at a0foo = alias void (), void ()* @foo
 
 define void @foo() {
   ret void
 }
 
- at a0bar = alias void ()* @bar
+ at a0bar = alias void (), void ()* @bar
 
 define void @bar() {
   ret void

Modified: llvm/trunk/test/SymbolRewriter/rewrite.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/SymbolRewriter/rewrite.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/SymbolRewriter/rewrite.ll (original)
+++ llvm/trunk/test/SymbolRewriter/rewrite.ll Thu Sep 10 22:22:04 2015
@@ -20,7 +20,7 @@ define i32 @caller() {
 }
 
 %struct.S = type { i8 }
- at _ZN1SC1Ev = alias void (%struct.S*)* @_ZN1SC2Ev
+ at _ZN1SC1Ev = alias void (%struct.S*), void (%struct.S*)* @_ZN1SC2Ev
 define void @_ZN1SC2Ev(%struct.S* %this) unnamed_addr align 2 {
 entry:
   %this.addr = alloca %struct.S*, align 4

Modified: llvm/trunk/test/Transforms/ConstantMerge/merge-both.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ConstantMerge/merge-both.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ConstantMerge/merge-both.ll (original)
+++ llvm/trunk/test/Transforms/ConstantMerge/merge-both.ll Thu Sep 10 22:22:04 2015
@@ -25,7 +25,7 @@ declare void @helper([16 x i8]*)
 ; CHECK-NEXT: @var7 = internal constant [16 x i8] c"foo1bar2foo3bar\00"
 ; CHECK-NEXT: @var8 = private constant [16 x i8] c"foo1bar2foo3bar\00", align 16
 
- at var4a = alias %struct.foobar* @var4
+ at var4a = alias %struct.foobar, %struct.foobar* @var4
 @llvm.used = appending global [1 x %struct.foobar*] [%struct.foobar* @var4a], section "llvm.metadata"
 
 define i32 @main() {

Modified: llvm/trunk/test/Transforms/GVN/2009-03-10-PREOnVoid.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/2009-03-10-PREOnVoid.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/2009-03-10-PREOnVoid.ll (original)
+++ llvm/trunk/test/Transforms/GVN/2009-03-10-PREOnVoid.ll Thu Sep 10 22:22:04 2015
@@ -17,20 +17,20 @@ target triple = "i386-pc-linux-gnu"
 	%"struct.std::pair<std::_Rb_tree_iterator<std::pair<void* const, std::vector<ShadowInfo, std::allocator<ShadowInfo> > > >,bool>" = type { %"struct.std::_Rb_tree_iterator<std::pair<void* const, std::vector<ShadowInfo, std::allocator<ShadowInfo> > > >", i8 }
 	%"struct.std::pair<void* const,void*>" = type { i8*, i8* }
 
- at _ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
- at _ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32)* @pthread_getspecific		; <i8* (i32)*> [#uses=0]
- at _ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*)* @pthread_setspecific		; <i32 (i32, i8*)*> [#uses=0]
- at _ZL22__gthrw_pthread_createPmPK16__pthread_attr_sPFPvS3_ES3_ = weak alias i32 (i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create		; <i32 (i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)*> [#uses=0]
- at _ZL22__gthrw_pthread_cancelm = weak alias i32 (i32)* @pthread_cancel		; <i32 (i32)*> [#uses=0]
- at _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
- at _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)* @pthread_mutex_init		; <i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)*> [#uses=0]
- at _ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*)* @pthread_key_create		; <i32 (i32*, void (i8*)*)*> [#uses=0]
- at _ZL26__gthrw_pthread_key_deletej = weak alias i32 (i32)* @pthread_key_delete		; <i32 (i32)*> [#uses=0]
- at _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = weak alias i32 (%struct.__sched_param*)* @pthread_mutexattr_init		; <i32 (%struct.__sched_param*)*> [#uses=0]
- at _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = weak alias i32 (%struct.__sched_param*, i32)* @pthread_mutexattr_settype		; <i32 (%struct.__sched_param*, i32)*> [#uses=0]
- at _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = weak alias i32 (%struct.__sched_param*)* @pthread_mutexattr_destroy		; <i32 (%struct.__sched_param*)*> [#uses=0]
+ at _ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread_once		; <i32 (i32*, void ()*)*> [#uses=0]
+ at _ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32), i8* (i32)* @pthread_getspecific		; <i8* (i32)*> [#uses=0]
+ at _ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*), i32 (i32, i8*)* @pthread_setspecific		; <i32 (i32, i8*)*> [#uses=0]
+ at _ZL22__gthrw_pthread_createPmPK16__pthread_attr_sPFPvS3_ES3_ = weak alias i32 (i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*), i32 (i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create		; <i32 (i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)*> [#uses=0]
+ at _ZL22__gthrw_pthread_cancelm = weak alias i32 (i32), i32 (i32)* @pthread_cancel		; <i32 (i32)*> [#uses=0]
+ at _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock		; <i32 (%struct.pthread_mutex_t*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct.pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)* @pthread_mutex_init		; <i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*), i32 (i32*, void (i8*)*)* @pthread_key_create		; <i32 (i32*, void (i8*)*)*> [#uses=0]
+ at _ZL26__gthrw_pthread_key_deletej = weak alias i32 (i32), i32 (i32)* @pthread_key_delete		; <i32 (i32)*> [#uses=0]
+ at _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = weak alias i32 (%struct.__sched_param*), i32 (%struct.__sched_param*)* @pthread_mutexattr_init		; <i32 (%struct.__sched_param*)*> [#uses=0]
+ at _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = weak alias i32 (%struct.__sched_param*, i32), i32 (%struct.__sched_param*, i32)* @pthread_mutexattr_settype		; <i32 (%struct.__sched_param*, i32)*> [#uses=0]
+ at _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = weak alias i32 (%struct.__sched_param*), i32 (%struct.__sched_param*)* @pthread_mutexattr_destroy		; <i32 (%struct.__sched_param*)*> [#uses=0]
 
 declare fastcc void @_ZNSt10_Select1stISt4pairIKPvS1_EEC1Ev() nounwind readnone
 

Modified: llvm/trunk/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll (original)
+++ llvm/trunk/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll Thu Sep 10 22:22:04 2015
@@ -5,14 +5,14 @@
 @A = global i32 0
 ; CHECK: @A = global i32 0
 
- at D = internal alias i32* @A
+ at D = internal alias i32, i32* @A
 ; DEAD-NOT: @D
 
- at L1 = alias i32* @A
-; CHECK: @L1 = alias i32* @A
+ at L1 = alias i32, i32* @A
+; CHECK: @L1 = alias i32, i32* @A
 
- at L2 = internal alias i32* @L1
-; CHECK: @L2 = internal alias i32* @L1
+ at L2 = internal alias i32, i32* @L1
+; CHECK: @L2 = internal alias i32, i32* @L1
 
- at L3 = alias i32* @L2
-; CHECK: @L3 = alias i32* @L2
+ at L3 = alias i32, i32* @L2
+; CHECK: @L3 = alias i32, i32* @L2

Modified: llvm/trunk/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll (original)
+++ llvm/trunk/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll Thu Sep 10 22:22:04 2015
@@ -1,4 +1,4 @@
 ; RUN: opt < %s -globaldce
 
- at A = internal alias void ()* @F
+ at A = internal alias void (), void ()* @F
 define internal void @F() { ret void }

Modified: llvm/trunk/test/Transforms/GlobalDCE/pr20981.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalDCE/pr20981.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalDCE/pr20981.ll (original)
+++ llvm/trunk/test/Transforms/GlobalDCE/pr20981.ll Thu Sep 10 22:22:04 2015
@@ -3,8 +3,8 @@
 $c1 = comdat any
 ; CHECK: $c1 = comdat any
 
- at a1 = linkonce_odr alias void ()* @f1
-; CHECK: @a1 = linkonce_odr alias void ()* @f1
+ at a1 = linkonce_odr alias void (), void ()* @f1
+; CHECK: @a1 = linkonce_odr alias void (), void ()* @f1
 
 define linkonce_odr void @f1() comdat($c1) {
   ret void

Modified: llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll Thu Sep 10 22:22:04 2015
@@ -2,7 +2,7 @@
 
 @g = global i32 0
 
- at a = alias bitcast (i32* @g to i8*)
+ at a = alias i8, bitcast (i32* @g to i8*)
 
 define void @f() {
 	%tmp = load i8, i8* @a

Modified: llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll Thu Sep 10 22:22:04 2015
@@ -6,14 +6,14 @@ define internal void @f() {
 	ret void
 }
 
- at a = alias void ()* @f
+ at a = alias void (), void ()* @f
 
 define void @g() {
 	call void() @a()
 	ret void
 }
 
- at b = internal alias  void ()* @g
+ at b = internal alias  void (),  void ()* @g
 ; CHECK-NOT: @b
 
 define void @h() {

Modified: llvm/trunk/test/Transforms/GlobalOpt/alias-resolve.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/alias-resolve.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/alias-resolve.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/alias-resolve.ll Thu Sep 10 22:22:04 2015
@@ -1,20 +1,20 @@
 ; RUN: opt < %s -globalopt -S | FileCheck %s
 
- at foo1 = alias void ()* @foo2
-; CHECK: @foo1 = alias void ()* @bar2
+ at foo1 = alias void (), void ()* @foo2
+; CHECK: @foo1 = alias void (), void ()* @bar2
 
- at foo2 = alias void()* @bar1
-; CHECK: @foo2 = alias void ()* @bar2
+ at foo2 = alias void(), void()* @bar1
+; CHECK: @foo2 = alias void (), void ()* @bar2
 
- at bar1  = alias void ()* @bar2
-; CHECK: @bar1 = alias void ()* @bar2
+ at bar1  = alias void (), void ()* @bar2
+; CHECK: @bar1 = alias void (), void ()* @bar2
 
- at weak1 = weak alias void ()* @bar2
-; CHECK: @weak1 = weak alias void ()* @bar2
+ at weak1 = weak alias void (), void ()* @bar2
+; CHECK: @weak1 = weak alias void (), void ()* @bar2
 
 @bar4 = private unnamed_addr constant [2 x i8*] zeroinitializer
- at foo4 = linkonce_odr unnamed_addr alias getelementptr inbounds ([2 x i8*], [2 x i8*]* @bar4, i32 0, i32 1)
-; CHECK: @foo4 = linkonce_odr unnamed_addr alias getelementptr inbounds ([2 x i8*], [2 x i8*]* @bar4, i32 0, i32 1)
+ at foo4 = linkonce_odr unnamed_addr alias i8*, getelementptr inbounds ([2 x i8*], [2 x i8*]* @bar4, i32 0, i32 1)
+; CHECK: @foo4 = linkonce_odr unnamed_addr alias i8*, getelementptr inbounds ([2 x i8*], [2 x i8*]* @bar4, i32 0, i32 1)
 
 define void @bar2() {
   ret void
@@ -37,7 +37,7 @@ entry:
          ret void
 }
 
- at foo3 = alias void ()* @bar3
+ at foo3 = alias void (), void ()* @bar3
 ; CHECK-NOT: bar3
 
 define internal void @bar3() {

Modified: llvm/trunk/test/Transforms/GlobalOpt/alias-used-address-space.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/alias-used-address-space.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/alias-used-address-space.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/alias-used-address-space.ll Thu Sep 10 22:22:04 2015
@@ -7,7 +7,7 @@ target datalayout = "p:32:32:32-p1:16:16
 @i = internal addrspace(1) global i8 42
 
 ; CHECK: @ia = internal addrspace(1) global i8 42
- at ia = internal alias i8 addrspace(1)* @i
+ at ia = internal alias i8, i8 addrspace(1)* @i
 
 @llvm.used = appending global [1 x i8*] [i8* addrspacecast (i8 addrspace(1)* @ca to i8*)], section "llvm.metadata"
 ; CHECK-DAG: @llvm.used = appending global [1 x i8*] [i8* addrspacecast (i8 addrspace(1)* @ca to i8*)], section "llvm.metadata"
@@ -18,8 +18,8 @@ target datalayout = "p:32:32:32-p1:16:16
 @sameAsUsed = global [1 x i8*] [i8* addrspacecast(i8 addrspace(1)* @ca to i8*)]
 ; CHECK-DAG: @sameAsUsed = global [1 x i8*] [i8* addrspacecast (i8 addrspace(1)* @c to i8*)]
 
- at ca = internal alias i8 addrspace(1)* @c
-; CHECK: @ca = internal alias i8 addrspace(1)* @c
+ at ca = internal alias i8, i8 addrspace(1)* @c
+; CHECK: @ca = internal alias i8, i8 addrspace(1)* @c
 
 define i8 addrspace(1)* @h() {
   ret i8 addrspace(1)* @ca

Modified: llvm/trunk/test/Transforms/GlobalOpt/alias-used-section.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/alias-used-section.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/alias-used-section.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/alias-used-section.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: opt -S -globalopt < %s | FileCheck %s
 
 @_Z17in_custom_section = internal global i8 42, section "CUSTOM"
- at in_custom_section = internal dllexport alias i8* @_Z17in_custom_section
+ at in_custom_section = internal dllexport alias i8, i8* @_Z17in_custom_section
 
 ; CHECK: @in_custom_section = internal dllexport global i8 42, section "CUSTOM"
 

Modified: llvm/trunk/test/Transforms/GlobalOpt/alias-used.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GlobalOpt/alias-used.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GlobalOpt/alias-used.ll (original)
+++ llvm/trunk/test/Transforms/GlobalOpt/alias-used.ll Thu Sep 10 22:22:04 2015
@@ -4,7 +4,7 @@
 
 @i = internal global i8 42
 ; CHECK: @ia = internal global i8 42
- at ia = internal alias i8* @i
+ at ia = internal alias i8, i8* @i
 
 @llvm.used = appending global [3 x i8*] [i8* bitcast (void ()* @fa to i8*), i8* bitcast (void ()* @f to i8*), i8* @ca], section "llvm.metadata"
 ; CHECK-DAG: @llvm.used = appending global [3 x i8*] [i8* bitcast (void ()* @fa to i8*), i8* bitcast (void ()* @f to i8*), i8* @ca], section "llvm.metadata"
@@ -18,17 +18,17 @@
 @other = global i32* bitcast (void ()* @fa to i32*)
 ; CHECK-DAG: @other = global i32* bitcast (void ()* @f to i32*)
 
- at fa = internal alias void ()* @f
-; CHECK: @fa = internal alias void ()* @f
+ at fa = internal alias void (), void ()* @f
+; CHECK: @fa = internal alias void (), void ()* @f
 
- at fa2 = internal alias void ()* @f
+ at fa2 = internal alias void (), void ()* @f
 ; CHECK-NOT: @fa2
 
- at fa3 = internal alias void ()* @f
+ at fa3 = internal alias void (), void ()* @f
 ; CHECK: @fa3
 
- at ca = internal alias i8* @c
-; CHECK: @ca = internal alias i8* @c
+ at ca = internal alias i8, i8* @c
+; CHECK: @ca = internal alias i8, i8* @c
 
 define void @f() {
   ret void

Modified: llvm/trunk/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -instcombine -S | grep icmp
 ; PR1646
 
- at __gthrw_pthread_cancel = weak alias i32 (i32)* @pthread_cancel		; <i32 (i32)*> [#uses=1]
+ at __gthrw_pthread_cancel = weak alias i32 (i32), i32 (i32)* @pthread_cancel		; <i32 (i32)*> [#uses=1]
 @__gthread_active_ptr.5335 = internal constant i8* bitcast (i32 (i32)* @__gthrw_pthread_cancel to i8*)		; <i8**> [#uses=1]
 define weak i32 @pthread_cancel(i32) {
        ret i32 0

Modified: llvm/trunk/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -instcombine -S | grep icmp
 ; PR1678
 
- at A = weak alias void ()* @B		; <void ()*> [#uses=1]
+ at A = weak alias void (), void ()* @B		; <void ()*> [#uses=1]
 
 define weak void @B() {
        ret void

Modified: llvm/trunk/test/Transforms/InstCombine/alias-recursion.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/alias-recursion.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/alias-recursion.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/alias-recursion.ll Thu Sep 10 22:22:04 2015
@@ -7,7 +7,7 @@ target triple = "x86_64-pc-windows-msvc"
 
 @0 = constant [1 x i8*] zeroinitializer
 
- at vtbl = alias getelementptr inbounds ([1 x i8*], [1 x i8*]* @0, i32 0, i32 0)
+ at vtbl = alias i8*, getelementptr inbounds ([1 x i8*], [1 x i8*]* @0, i32 0, i32 0)
 
 define i32 (%class.A*)* @test() {
 ; CHECK-LABEL: test

Modified: llvm/trunk/test/Transforms/InstCombine/bitcast-alias-function.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/bitcast-alias-function.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/bitcast-alias-function.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/bitcast-alias-function.ll Thu Sep 10 22:22:04 2015
@@ -6,46 +6,46 @@ target datalayout = "e-p:32:32:32-i32:32
 ; Cases that should be bitcast
 
 ; Test cast between scalars with same bit sizes
- at alias_i32_to_f32 = alias bitcast (i32 (i32)* @func_i32 to float (float)*)
+ at alias_i32_to_f32 = alias float (float), bitcast (i32 (i32)* @func_i32 to float (float)*)
 
 ; Test cast between vectors with same number of elements and bit sizes
- at alias_v2i32_to_v2f32 = alias bitcast (<2 x i32> (<2 x i32>)* @func_v2i32 to <2 x float> (<2 x float>)*)
+ at alias_v2i32_to_v2f32 = alias <2 x float> (<2 x float>), bitcast (<2 x i32> (<2 x i32>)* @func_v2i32 to <2 x float> (<2 x float>)*)
 
 ; Test cast from vector to scalar with same number of bits
- at alias_v2f32_to_i64 = alias bitcast (i64 (i64)* @func_i64 to <2 x float> (<2 x float>)*)
+ at alias_v2f32_to_i64 = alias <2 x float> (<2 x float>), bitcast (i64 (i64)* @func_i64 to <2 x float> (<2 x float>)*)
 
 ; Test cast from scalar to vector with same number of bits
- at alias_i64_to_v2f32 = alias bitcast (<2 x float> (<2 x float>)* @func_v2f32 to i64 (i64)*)
+ at alias_i64_to_v2f32 = alias i64 (i64), bitcast (<2 x float> (<2 x float>)* @func_v2f32 to i64 (i64)*)
 
 ; Test cast between vectors of pointers
- at alias_v2i32p_to_v2i64p = alias bitcast (<2 x i32*> (<2 x i32*>)* @func_v2i32p to <2 x i64*> (<2 x i64*>)*)
+ at alias_v2i32p_to_v2i64p = alias <2 x i64*> (<2 x i64*>), bitcast (<2 x i32*> (<2 x i32*>)* @func_v2i32p to <2 x i64*> (<2 x i64*>)*)
 
 
 ; Cases that should be invalid and unchanged
 
 ; Test cast between scalars with different bit sizes
- at alias_i64_to_f32 = alias bitcast (i64 (i64)* @func_i64 to float (float)*)
+ at alias_i64_to_f32 = alias float (float), bitcast (i64 (i64)* @func_i64 to float (float)*)
 
 ; Test cast between vectors with different bit sizes but the
 ; same number of elements
- at alias_v2i64_to_v2f32 = alias bitcast (<2 x i64> (<2 x i64>)* @func_v2i64 to <2 x float> (<2 x float>)*)
+ at alias_v2i64_to_v2f32 = alias <2 x float> (<2 x float>), bitcast (<2 x i64> (<2 x i64>)* @func_v2i64 to <2 x float> (<2 x float>)*)
 
 ; Test cast between vectors with same number of bits and different
 ; numbers of elements
- at alias_v2i32_to_v4f32 = alias bitcast (<2 x i32> (<2 x i32>)* @func_v2i32 to <4 x float> (<4 x float>)*)
+ at alias_v2i32_to_v4f32 = alias <4 x float> (<4 x float>), bitcast (<2 x i32> (<2 x i32>)* @func_v2i32 to <4 x float> (<4 x float>)*)
 
 ; Test cast between scalar and vector with different number of bits
- at alias_i64_to_v4f32 = alias bitcast (<4 x float> (<4 x float>)* @func_v4f32 to i64 (i64)*)
+ at alias_i64_to_v4f32 = alias i64 (i64), bitcast (<4 x float> (<4 x float>)* @func_v4f32 to i64 (i64)*)
 
 ; Test cast between vector and scalar with different number of bits
- at alias_v4f32_to_i64 = alias bitcast (i64 (i64)* @func_i64 to <4 x float> (<4 x float>)*)
+ at alias_v4f32_to_i64 = alias <4 x float> (<4 x float>), bitcast (i64 (i64)* @func_i64 to <4 x float> (<4 x float>)*)
 
 ; Test cast from scalar to vector of pointers with same number of bits
 ; We don't know the pointer size at this point, so this can't be done
- at alias_i64_to_v2i32p = alias bitcast (<2 x i32*> (<2 x i32*>)* @func_v2i32p to i64 (i64)*)
+ at alias_i64_to_v2i32p = alias i64 (i64), bitcast (<2 x i32*> (<2 x i32*>)* @func_v2i32p to i64 (i64)*)
 
 ; Test cast between vector of pointers and scalar with different number of bits
- at alias_v4i32p_to_i64 = alias bitcast (i64 (i64)* @func_i64 to <4 x i32*> (<4 x i32*>)*)
+ at alias_v4i32p_to_i64 = alias <4 x i32*> (<4 x i32*>), bitcast (i64 (i64)* @func_i64 to <4 x i32*> (<4 x i32*>)*)
 
 
 

Modified: llvm/trunk/test/Transforms/InstCombine/constant-fold-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/constant-fold-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/constant-fold-alias.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/constant-fold-alias.ll Thu Sep 10 22:22:04 2015
@@ -6,8 +6,8 @@ target datalayout = "e-p1:16:16-p2:32:32
 @G2 = global i32 42
 @G3 = global [4 x i8] zeroinitializer, align 1
 
- at A1 = alias bitcast (i8* getelementptr inbounds ([4 x i8], [4 x i8]* @G3, i32 0, i32 2) to i32*)
- at A2 = alias inttoptr (i64 and (i64 ptrtoint (i8* getelementptr inbounds ([4 x i8], [4 x i8]* @G3, i32 0, i32 3) to i64), i64 -4) to i32*)
+ at A1 = alias i32, bitcast (i8* getelementptr inbounds ([4 x i8], [4 x i8]* @G3, i32 0, i32 2) to i32*)
+ at A2 = alias i32, inttoptr (i64 and (i64 ptrtoint (i8* getelementptr inbounds ([4 x i8], [4 x i8]* @G3, i32 0, i32 3) to i64), i64 -4) to i32*)
 
 define i64 @f1() {
 ; This cannot be constant folded because G1 is underaligned.

Modified: llvm/trunk/test/Transforms/InstCombine/objsize-address-space.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/objsize-address-space.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/objsize-address-space.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/objsize-address-space.ll Thu Sep 10 22:22:04 2015
@@ -32,7 +32,7 @@ define i16 @foo_as3_i16() nounwind {
   ret i16 %1
 }
 
- at a_alias = weak alias [60 x i8] addrspace(3)* @a_as3
+ at a_alias = weak alias [60 x i8], [60 x i8] addrspace(3)* @a_as3
 define i32 @foo_alias() nounwind {
   %1 = call i32 @llvm.objectsize.i32.p3i8(i8 addrspace(3)* getelementptr inbounds ([60 x i8], [60 x i8] addrspace(3)* @a_alias, i32 0, i32 0), i1 false)
   ret i32 %1

Modified: llvm/trunk/test/Transforms/InstCombine/objsize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/objsize.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/objsize.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/objsize.ll Thu Sep 10 22:22:04 2015
@@ -219,7 +219,7 @@ define i32 @test13(i8** %esc) {
   ret i32 %1
 }
 
- at globalalias = internal alias [60 x i8]* @a
+ at globalalias = internal alias [60 x i8], [60 x i8]* @a
 
 ; CHECK-LABEL: @test18(
 ; CHECK-NEXT: ret i32 60
@@ -229,7 +229,7 @@ define i32 @test18() {
   ret i32 %1
 }
 
- at globalalias2 = weak alias [60 x i8]* @a
+ at globalalias2 = weak alias [60 x i8], [60 x i8]* @a
 
 ; CHECK-LABEL: @test19(
 ; CHECK: llvm.objectsize

Modified: llvm/trunk/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll (original)
+++ llvm/trunk/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll Thu Sep 10 22:22:04 2015
@@ -3,11 +3,11 @@
 @A = global i32 0
 ; CHECK: @A = internal global i32 0
 
- at B = alias i32* @A
-; CHECK: @B = internal alias i32* @A
+ at B = alias i32, i32* @A
+; CHECK: @B = internal alias i32, i32* @A
 
- at C = alias i32* @A
-; CHECK: @C = internal alias i32* @A
+ at C = alias i32, i32* @A
+; CHECK: @C = internal alias i32, i32* @A
 
 define i32 @main() {
 	%tmp = load i32, i32* @C

Modified: llvm/trunk/test/Transforms/Internalize/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Internalize/comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Internalize/comdat.ll (original)
+++ llvm/trunk/test/Transforms/Internalize/comdat.ll Thu Sep 10 22:22:04 2015
@@ -17,14 +17,14 @@ $c4 = comdat any
 ; CHECK: @c4_a = internal global i32 0, comdat($c4)
 @c4_a = internal global i32 0, comdat($c4)
 
-; CHECK: @c1_d = alias i32* @c1_c
- at c1_d = alias i32* @c1_c
+; CHECK: @c1_d = alias i32, i32* @c1_c
+ at c1_d = alias i32, i32* @c1_c
 
-; CHECK: @c2_c = internal alias i32* @c2_b
- at c2_c = alias i32* @c2_b
+; CHECK: @c2_c = internal alias i32, i32* @c2_b
+ at c2_c = alias i32, i32* @c2_b
 
-; CHECK: @c4 = alias i32* @c4_a
- at c4 = alias i32* @c4_a
+; CHECK: @c4 = alias i32, i32* @c4_a
+ at c4 = alias i32, i32* @c4_a
 
 ; CHECK: define void @c1() comdat {
 define void @c1() comdat {

Modified: llvm/trunk/test/Transforms/Internalize/local-visibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Internalize/local-visibility.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Internalize/local-visibility.ll (original)
+++ llvm/trunk/test/Transforms/Internalize/local-visibility.ll Thu Sep 10 22:22:04 2015
@@ -10,10 +10,10 @@
 ; CHECK: @protected.variable = internal global i32 0
 @protected.variable = protected global i32 0
 
-; CHECK: @hidden.alias = internal alias  i32* @global
- at hidden.alias = hidden alias i32* @global
-; CHECK: @protected.alias = internal alias i32* @global
- at protected.alias = protected alias i32* @global
+; CHECK: @hidden.alias = internal alias  i32,  i32* @global
+ at hidden.alias = hidden alias i32, i32* @global
+; CHECK: @protected.alias = internal alias i32, i32* @global
+ at protected.alias = protected alias i32, i32* @global
 
 ; CHECK: define internal void @hidden.function() {
 define hidden void @hidden.function() {

Modified: llvm/trunk/test/Transforms/LowerBitSets/function.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LowerBitSets/function.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LowerBitSets/function.ll (original)
+++ llvm/trunk/test/Transforms/LowerBitSets/function.ll Thu Sep 10 22:22:04 2015
@@ -8,8 +8,8 @@ target datalayout = "e-p:64:64"
 
 ; CHECK: @[[JT:.*]] = private constant [2 x <{ i8, i32, i8, i8, i8 }>] [<{ i8, i32, i8, i8, i8 }> <{ i8 -23, i32 trunc (i64 sub (i64 sub (i64 ptrtoint (void ()* @[[FNAME:.*]] to i64), i64 ptrtoint ([2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to i64)), i64 5) to i32), i8 -52, i8 -52, i8 -52 }>, <{ i8, i32, i8, i8, i8 }> <{ i8 -23, i32 trunc (i64 sub (i64 sub (i64 ptrtoint (void ()* @[[GNAME:.*]] to i64), i64 ptrtoint ([2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to i64)), i64 13) to i32), i8 -52, i8 -52, i8 -52 }>], section ".text"
 
-; CHECK: @f = alias bitcast ([2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to void ()*)
-; CHECK: @g = alias bitcast (<{ i8, i32, i8, i8, i8 }>* getelementptr inbounds ([2 x <{ i8, i32, i8, i8, i8 }>], [2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]], i64 0, i64 1) to void ()*)
+; CHECK: @f = alias void (), bitcast ([2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to void ()*)
+; CHECK: @g = alias void (), bitcast (<{ i8, i32, i8, i8, i8 }>* getelementptr inbounds ([2 x <{ i8, i32, i8, i8, i8 }>], [2 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]], i64 0, i64 1) to void ()*)
 
 ; CHECK: define private void @[[FNAME]]() {
 define void @f() {

Modified: llvm/trunk/test/Transforms/LowerBitSets/simple.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LowerBitSets/simple.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LowerBitSets/simple.ll (original)
+++ llvm/trunk/test/Transforms/LowerBitSets/simple.ll Thu Sep 10 22:22:04 2015
@@ -38,14 +38,14 @@ target datalayout = "e-p:32:32"
 
 !llvm.bitsets = !{ !0, !1, !2, !3, !4, !5, !6, !7 }
 
-; CHECK: @bits_use{{[0-9]*}} = private alias i8* @bits{{[0-9]*}}
-; CHECK: @bits_use.{{[0-9]*}} = private alias i8* @bits{{[0-9]*}}
-; CHECK: @bits_use.{{[0-9]*}} = private alias i8* @bits{{[0-9]*}}
-
-; CHECK: @a = alias getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 0)
-; CHECK: @b = hidden alias getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 2)
-; CHECK: @c = protected alias getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 4)
-; CHECK: @d = alias getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 6)
+; CHECK: @bits_use{{[0-9]*}} = private alias i8, i8* @bits{{[0-9]*}}
+; CHECK: @bits_use.{{[0-9]*}} = private alias i8, i8* @bits{{[0-9]*}}
+; CHECK: @bits_use.{{[0-9]*}} = private alias i8, i8* @bits{{[0-9]*}}
+
+; CHECK: @a = alias i32, getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 0)
+; CHECK: @b = hidden alias [63 x i32], getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 2)
+; CHECK: @c = protected alias i32, getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 4)
+; CHECK: @d = alias [2 x i32], getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G]], i32 0, i32 6)
 
 ; CHECK-DARWIN: @aptr = constant i32* getelementptr inbounds ({ i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }, { i32, [0 x i8], [63 x i32], [4 x i8], i32, [0 x i8], [2 x i32] }* [[G:@[^ ]*]], i32 0, i32 0)
 @aptr = constant i32* @a
@@ -61,8 +61,8 @@ target datalayout = "e-p:32:32"
 
 ; CHECK-DARWIN: [[G]] = private constant
 
-; CHECK: @bits{{[0-9]*}} = private alias getelementptr inbounds ([68 x i8], [68 x i8]* [[BA]], i32 0, i32 0)
-; CHECK: @bits.{{[0-9]*}} = private alias getelementptr inbounds ([68 x i8], [68 x i8]* [[BA]], i32 0, i32 0)
+; CHECK: @bits{{[0-9]*}} = private alias i8, getelementptr inbounds ([68 x i8], [68 x i8]* [[BA]], i32 0, i32 0)
+; CHECK: @bits.{{[0-9]*}} = private alias i8, getelementptr inbounds ([68 x i8], [68 x i8]* [[BA]], i32 0, i32 0)
 
 declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone
 

Modified: llvm/trunk/test/Transforms/MetaRenamer/metarenamer.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/MetaRenamer/metarenamer.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/MetaRenamer/metarenamer.ll (original)
+++ llvm/trunk/test/Transforms/MetaRenamer/metarenamer.ll Thu Sep 10 22:22:04 2015
@@ -12,7 +12,7 @@ target triple = "x86_64-pc-linux-gnu"
 @func_5_xxx.static_local_3_xxx = internal global i32 3, align 4
 @global_3_xxx = common global i32 0, align 4
 
- at func_7_xxx = weak alias i32 (...)* @aliased_func_7_xxx
+ at func_7_xxx = weak alias i32 (...), i32 (...)* @aliased_func_7_xxx
 
 define i32 @aliased_func_7_xxx(...) {
   ret i32 0

Modified: llvm/trunk/test/Transforms/SCCP/global-alias-constprop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SCCP/global-alias-constprop.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SCCP/global-alias-constprop.ll (original)
+++ llvm/trunk/test/Transforms/SCCP/global-alias-constprop.ll Thu Sep 10 22:22:04 2015
@@ -1,7 +1,7 @@
 ; RUN: opt < %s -sccp -S | FileCheck %s
 
 @0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1]
-@"\01??_7A@@6B@" = unnamed_addr alias getelementptr inbounds ([2 x i32], [2 x i32]* @0, i32 0, i32 1)
+@"\01??_7A@@6B@" = unnamed_addr alias i32, getelementptr inbounds ([2 x i32], [2 x i32]* @0, i32 0, i32 1)
 
 ; CHECK: ret i32 1
 

Modified: llvm/trunk/test/Verifier/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Verifier/alias.ll (original)
+++ llvm/trunk/test/Verifier/alias.ll Thu Sep 10 22:22:04 2015
@@ -2,18 +2,18 @@
 
 
 declare void @f()
- at fa = alias void ()* @f
+ at fa = alias void (), void ()* @f
 ; CHECK: Alias must point to a definition
 ; CHECK-NEXT: @fa
 
 @g = external global i32
- at ga = alias i32* @g
+ at ga = alias i32, i32* @g
 ; CHECK: Alias must point to a definition
 ; CHECK-NEXT: @ga
 
 
- at test2_a = alias i32* @test2_b
- at test2_b = alias i32* @test2_a
+ at test2_a = alias i32, i32* @test2_b
+ at test2_b = alias i32, i32* @test2_a
 ; CHECK:      Aliases cannot form a cycle
 ; CHECK-NEXT: i32* @test2_a
 ; CHECK-NEXT: Aliases cannot form a cycle
@@ -21,7 +21,7 @@ declare void @f()
 
 
 @test3_a = global i32 42
- at test3_b = weak alias i32* @test3_a
- at test3_c = alias i32* @test3_b
+ at test3_b = weak alias i32, i32* @test3_a
+ at test3_c = alias i32, i32* @test3_b
 ; CHECK: Alias cannot point to a weak alias
 ; CHECK-NEXT: i32* @test3_c

Modified: llvm/trunk/test/Verifier/bitcast-alias-address-space.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/bitcast-alias-address-space.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/Verifier/bitcast-alias-address-space.ll (original)
+++ llvm/trunk/test/Verifier/bitcast-alias-address-space.ll Thu Sep 10 22:22:04 2015
@@ -7,4 +7,4 @@ target datalayout = "e-p:32:32:32-p1:16:
 
 @data = addrspace(2) global i32 27
 
- at illegal_alias_data = alias bitcast (i32 addrspace(2)* @data to i32 addrspace(1)*)
+ at illegal_alias_data = alias i32, bitcast (i32 addrspace(2)* @data to i32 addrspace(1)*)

Modified: llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll Thu Sep 10 22:22:04 2015
@@ -17,9 +17,9 @@ bb21:
 @r21 = global i32* @v1
 @r22 = global i32(i8*)* @f1
 
- at a21 = alias i32* @v1
- at a22 = alias bitcast (i32* @v1 to i16*)
+ at a21 = alias i32, i32* @v1
+ at a22 = alias i16, bitcast (i32* @v1 to i16*)
 
- at a23 = alias i32(i8*)* @f1
- at a24 = alias bitcast (i32(i8*)* @f1 to i16*)
- at a25 = alias i16* @a24
+ at a23 = alias i32(i8*), i32(i8*)* @f1
+ at a24 = alias i16, bitcast (i32(i8*)* @f1 to i16*)
+ at a25 = alias i16, i16* @a24

Modified: llvm/trunk/test/tools/gold/X86/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/alias.ll Thu Sep 10 22:22:04 2015
@@ -9,5 +9,5 @@
 ; CHECK-NEXT: @b = global i32 1
 ; CHECK-NOT: alias
 
- at a = weak alias i32* @b
+ at a = weak alias i32, i32* @b
 @b = global i32 1

Modified: llvm/trunk/test/tools/gold/X86/bad-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/bad-alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/bad-alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/bad-alias.ll Thu Sep 10 22:22:04 2015
@@ -9,5 +9,5 @@
 @g1 = global i32 1
 @g2 = global i32 2
 
- at a = alias inttoptr(i32 sub (i32 ptrtoint (i32* @g1 to i32),
+ at a = alias inttoptr(i32 sub (i32 ptrtoint (i32, inttoptr(i32 sub (i32 ptrtoint (i32* @g1 to i32),
                              i32 ptrtoint (i32* @g2 to i32)) to i32*)

Modified: llvm/trunk/test/tools/gold/X86/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/comdat.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/comdat.ll (original)
+++ llvm/trunk/test/tools/gold/X86/comdat.ll Thu Sep 10 22:22:04 2015
@@ -17,12 +17,12 @@ bb11:
 @r11 = global i32* @v1
 @r12 = global i32 (i8*)* @f1
 
- at a11 = alias i32* @v1
- at a12 = alias bitcast (i32* @v1 to i16*)
+ at a11 = alias i32, i32* @v1
+ at a12 = alias i16, bitcast (i32* @v1 to i16*)
 
- at a13 = alias i32 (i8*)* @f1
- at a14 = alias bitcast (i32 (i8*)* @f1 to i16*)
- at a15 = alias i16* @a14
+ at a13 = alias i32 (i8*), i32 (i8*)* @f1
+ at a14 = alias i16, bitcast (i32 (i8*)* @f1 to i16*)
+ at a15 = alias i16, i16* @a14
 
 ; CHECK: $c1 = comdat any
 ; CHECK: $c2 = comdat any
@@ -37,17 +37,17 @@ bb11:
 
 ; CHECK: @v11 = internal global i32 41, comdat($c2)
 
-; CHECK: @a11 = alias i32* @v1{{$}}
-; CHECK: @a12 = alias bitcast (i32* @v1 to i16*)
+; CHECK: @a11 = alias i32, i32* @v1{{$}}
+; CHECK: @a12 = alias i16, bitcast (i32* @v1 to i16*)
 
-; CHECK: @a13 = alias i32 (i8*)* @f1{{$}}
-; CHECK: @a14 = alias bitcast (i32 (i8*)* @f1 to i16*)
+; CHECK: @a13 = alias i32 (i8*), i32 (i8*)* @f1{{$}}
+; CHECK: @a14 = alias i16, bitcast (i32 (i8*)* @f1 to i16*)
 
-; CHECK: @a21 = alias i32* @v11{{$}}
-; CHECK: @a22 = alias bitcast (i32* @v11 to i16*)
+; CHECK: @a21 = alias i32, i32* @v11{{$}}
+; CHECK: @a22 = alias i16, bitcast (i32* @v11 to i16*)
 
-; CHECK: @a23 = alias i32 (i8*)* @f12{{$}}
-; CHECK: @a24 = alias bitcast (i32 (i8*)* @f12 to i16*)
+; CHECK: @a23 = alias i32 (i8*), i32 (i8*)* @f12{{$}}
+; CHECK: @a24 = alias i16, bitcast (i32 (i8*)* @f12 to i16*)
 
 ; CHECK:      define weak_odr protected i32 @f1(i8*) comdat($c1) {
 ; CHECK-NEXT: bb10:

Modified: llvm/trunk/test/tools/llvm-split/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-split/alias.ll?rev=247378&r1=247377&r2=247378&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-split/alias.ll (original)
+++ llvm/trunk/test/tools/llvm-split/alias.ll Thu Sep 10 22:22:04 2015
@@ -2,13 +2,13 @@
 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
 
-; CHECK0-DAG: @afoo = alias [2 x i8*]* @foo
+; CHECK0-DAG: @afoo = alias [2 x i8*], [2 x i8*]* @foo
 ; CHECK1-DAG: @afoo = external global [2 x i8*]
- at afoo = alias [2 x i8*]* @foo
+ at afoo = alias [2 x i8*], [2 x i8*]* @foo
 
 ; CHECK0-DAG: declare void @abar()
-; CHECK1-DAG: @abar = alias void ()* @bar
- at abar = alias void ()* @bar
+; CHECK1-DAG: @abar = alias void (), void ()* @bar
+ at abar = alias void (), void ()* @bar
 
 @foo = global [2 x i8*] [i8* bitcast (void ()* @bar to i8*), i8* bitcast (void ()* @abar to i8*)]
 




More information about the llvm-commits mailing list