From 230c5eb4bde7314331ae5c0bca65087ed504202c Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Mon, 19 May 2014 18:15:42 +0000 Subject: Non-allocatable Global Named Register This patch implements global named registers in Clang, lowering to the just created intrinsics in LLVM (@llvm.read/write_register). A new type of LValue had to be created (Register), which just adds support to carry the metadata node containing the name of the register. Two new methods to emit loads and stores interoperate with another to emit the named metadata node. No guarantees are being made and only non-allocatable global variable named registers are being supported. Local named register support is unchanged. llvm-svn: 209149 --- clang/test/Sema/decl-invalid.c | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/test/Sema/decl-invalid.c') diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c index 0544304c20e..c7ec6dd725d 100644 --- a/clang/test/Sema/decl-invalid.c +++ b/clang/test/Sema/decl-invalid.c @@ -24,5 +24,4 @@ I; // expected-warning {{declaration does not declare anything}} // rdar://6880449 register int test1; // expected-error {{illegal storage class on file-scoped variable}} -register int test2 __asm__("edi"); // expected-error {{global register variables are not supported}} -- cgit v1.2.3