diff options
Diffstat (limited to 'tgsi')
-rw-r--r-- | tgsi/lib/SOURCES | 1 | ||||
-rw-r--r-- | tgsi/lib/workitem/get_work_dim.ll | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tgsi/lib/SOURCES b/tgsi/lib/SOURCES index 4aba61d..4380c09 100644 --- a/tgsi/lib/SOURCES +++ b/tgsi/lib/SOURCES @@ -2,3 +2,4 @@ workitem/get_group_id.ll workitem/get_local_id.ll workitem/get_local_size.ll workitem/get_num_groups.ll +workitem/get_work_dim.ll diff --git a/tgsi/lib/workitem/get_work_dim.ll b/tgsi/lib/workitem/get_work_dim.ll new file mode 100644 index 0000000..c47a299 --- /dev/null +++ b/tgsi/lib/workitem/get_work_dim.ll @@ -0,0 +1,8 @@ +declare i32 @llvm.tgsi.read.workdim() nounwind readnone + +define i32 @get_work_dim() nounwind readnone alwaysinline { + %x = call i32 @llvm.tgsi.read.workdim() nounwind readnone , !range !0 + ret i32 %x +} + +!0 = !{ i32 1, i32 4 } |