[PATCH] Implement Named Register Global Variables in LLVM

Renato Golin renato.golin at linaro.org
Fri Apr 25 09:57:11 PDT 2014


================
Comment at: docs/LangRef.rst:6811-6812
@@ +6810,4 @@
+
+Pointer types are used to make sure it has the same bit width as the
+register itself.
+
----------------
Tim Northover wrote:
> I'd make it polymorphic. I suspect quite a few targets have pointer types that are inadequate to represent all registers (for various reasons).
Wouldn't that force me to write many definitions of the intrinsics in Intrinsics.td?

I'm assuming the pointer is the size of the generic purpose registers, which we'll support with this. If we want to support other registers (vector, etc) we should create other intrinsics.

http://reviews.llvm.org/D3261






More information about the llvm-commits mailing list