summaryrefslogtreecommitdiff
path: root/include/llvm/Intrinsics.td
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-12-07 19:36:34 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-12-07 19:36:34 +0000
commit2f9dac721d6b015fd16730bd51bffc86e29e6fdf (patch)
treec8165e684f0d1518edafa8a8b4eb94656d2dd6e1 /include/llvm/Intrinsics.td
parentbc39a795f46ef04326915d881dc1d861144e3e19 (diff)
downloadllvm-2f9dac721d6b015fd16730bd51bffc86e29e6fdf.tar.gz
llvm-2f9dac721d6b015fd16730bd51bffc86e29e6fdf.tar.bz2
llvm-2f9dac721d6b015fd16730bd51bffc86e29e6fdf.tar.xz
Introduce the "@llvm.dbg.value" debug intrinsic.
The semantics of llvm.dbg.value are that starting from where it is executed, an offset into the specified user source variable is specified to get a new value. An example: call void @llvm.dbg.value(metadata !{ i32 7 }, i64 0, metadata !2) Here the user source variable associated with metadata #2 gets the value "i32 7" at offset 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Intrinsics.td')
-rw-r--r--include/llvm/Intrinsics.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index b3b0678a24..6ff87ba150 100644
--- a/include/llvm/Intrinsics.td
+++ b/include/llvm/Intrinsics.td
@@ -290,6 +290,9 @@ let Properties = [IntrNoMem] in {
def int_dbg_func_start : Intrinsic<[llvm_void_ty], [llvm_metadata_ty]>;
def int_dbg_declare : Intrinsic<[llvm_void_ty],
[llvm_descriptor_ty, llvm_metadata_ty]>;
+ def int_dbg_value : Intrinsic<[llvm_void_ty],
+ [llvm_metadata_ty, llvm_i64_ty,
+ llvm_metadata_ty]>;
}
//===------------------ Exception Handling Intrinsics----------------------===//