From 6d806e93cee502459fc15d039a16b9dc7e9cc30e Mon Sep 17 00:00:00 2001
From: Tanya Lattner
Date: Fri, 15 Jun 2007 20:50:54 +0000
Subject: [PATCH] Add local var annotation intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37603 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/LangRef.html | 50 ++++++++++++++++++++++++++++++++++++++
include/llvm/Intrinsics.td | 5 ++++
2 files changed, 55 insertions(+)
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 9efc1c17ff8..796aa563a7b 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -191,6 +191,12 @@
Debugger intrinsics
Exception Handling intrinsics
+ General intrinsics
+
+ - 'llvm.var.annotation'
+ Intrinsic
+
+
@@ -4819,6 +4825,50 @@ href="ExceptionHandling.html#format_common_intrinsics">LLVM Exception
Handling document.
+
+
+
This class of intrinsics is designed to be generic and has
+no specific purpose.
+
+
+
+
+
+
Syntax:
+
+ declare void @llvm.var.annotation(i8* <val>, i8* <str>)
+
+
+
Overview:
+
+
+The 'llvm.var.annotation' intrinsic
+
+
+
Arguments:
+
+
+The first argument is a pointer to a value, and the second is a pointer to a
+global string.
+
+
+
Semantics:
+
+
+This intrinsic allows annotation of local variables with arbitrary strings.
+This can be useful for special purpose optimizations that want to look for these
+ annotations. These have no other defined use, they are ignored by code
+ generation and optimization.
+
+