tstellar / rpms / llvm

Forked from rpms/llvm 2 years ago
Clone
dcd073
From 17667fa3450470f7c89fc2ba4631d908cf510749 Mon Sep 17 00:00:00 2001
dcd073
From: Tom Stellard <thomas.stellard@amd.com>
dcd073
Date: Wed, 14 Mar 2012 11:19:35 -0400
dcd073
Subject: [PATCH 2/2] r600: Add get_global_size and get_local_size intrinsics
dcd073
dcd073
---
dcd073
 include/llvm/IntrinsicsR600.td |    4 ++++
dcd073
 1 files changed, 4 insertions(+), 0 deletions(-)
dcd073
dcd073
diff --git a/include/llvm/IntrinsicsR600.td b/include/llvm/IntrinsicsR600.td
dcd073
index 789fecb..0473acb 100644
dcd073
--- a/include/llvm/IntrinsicsR600.td
dcd073
+++ b/include/llvm/IntrinsicsR600.td
dcd073
@@ -26,6 +26,10 @@ multiclass R600ReadPreloadRegisterIntrinsic_xyz<string prefix=""> {
dcd073
   def _z : R600ReadPreloadRegisterIntrinsic;
dcd073
 }
dcd073
 
dcd073
+defm int_r600_read_global_size : R600ReadPreloadRegisterIntrinsic_xyz <
dcd073
+                                       "__builtin_r600_read_global_size">;
dcd073
+defm int_r600_read_local_size : R600ReadPreloadRegisterIntrinsic_xyz <
dcd073
+                                       "__builtin_r600_read_local_size">;
dcd073
 defm int_r600_read_ngroups : R600ReadPreloadRegisterIntrinsic_xyz <
dcd073
                                        "__builtin_r600_read_ngroups">;
dcd073
 defm int_r600_read_tgid : R600ReadPreloadRegisterIntrinsic_xyz <
dcd073
-- 
dcd073
1.7.7.6
dcd073