[llvm] r211522 - R600: Fix formatting of intrinsic definitions.
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Jun 23 11:28:23 PDT 2014
Author: arsenm
Date: Mon Jun 23 13:28:23 2014
New Revision: 211522
URL: http://llvm.org/viewvc/llvm-project?rev=211522&view=rev
Log:
R600: Fix formatting of intrinsic definitions.
It makes more sense for the GCCBuiltin name to come immediately
after the ID name.
Modified:
llvm/trunk/include/llvm/IR/IntrinsicsR600.td
Modified: llvm/trunk/include/llvm/IR/IntrinsicsR600.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IntrinsicsR600.td?rev=211522&r1=211521&r2=211522&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsR600.td (original)
+++ llvm/trunk/include/llvm/IR/IntrinsicsR600.td Mon Jun 23 13:28:23 2014
@@ -37,36 +37,28 @@ defm int_r600_read_tidig : R600ReadPrelo
} // End TargetPrefix = "r600"
let TargetPrefix = "AMDGPU" in {
-def int_AMDGPU_div_scale :
+def int_AMDGPU_div_scale : GCCBuiltin<"__builtin_amdgpu_div_scale">,
Intrinsic<[llvm_anyfloat_ty, llvm_i1_ty],
- [LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_div_scale">;
+ [LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>;
-def int_AMDGPU_div_fmas :
+def int_AMDGPU_div_fmas : GCCBuiltin<"__builtin_amdgpu_div_fmas">,
Intrinsic<[llvm_anyfloat_ty],
[LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>],
- [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_div_fmas">;
+ [IntrNoMem]>;
-def int_AMDGPU_div_fixup :
+def int_AMDGPU_div_fixup : GCCBuiltin<"__builtin_amdgpu_div_fixup">,
Intrinsic<[llvm_anyfloat_ty],
- [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_div_fixup">;
+ [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>],
+ [IntrNoMem]>;
-def int_AMDGPU_trig_preop :
- Intrinsic<[llvm_anyfloat_ty],
- [LLVMMatchType<0>, llvm_i32_ty], [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_trig_preop">;
+def int_AMDGPU_trig_preop : GCCBuiltin<"__builtin_amdgpu_trig_preop">,
+ Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, llvm_i32_ty],
+ [IntrNoMem]>;
-def int_AMDGPU_rcp :
- Intrinsic<[llvm_anyfloat_ty],
- [LLVMMatchType<0>], [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_rcp">;
-
-def int_AMDGPU_rsq :
- Intrinsic<[llvm_anyfloat_ty],
- [LLVMMatchType<0>], [IntrNoMem]>,
- GCCBuiltin<"__builtin_amdgpu_rsq">;
+def int_AMDGPU_rcp : GCCBuiltin<"__builtin_amdgpu_rcp">,
+ Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]>;
+def int_AMDGPU_rsq : GCCBuiltin<"__builtin_amdgpu_rsq">,
+ Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]>;
} // End TargetPrefix = "AMDGPU"
More information about the llvm-commits
mailing list