diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-01-31 03:42:07 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-01-31 03:42:07 +0000 |
commit | a274b209f5898feb31b28db27c503d3ed76455e5 (patch) | |
tree | 957b100752e3b7a6da80786a136a890530db42ec /clang/lib/CodeGen/CGBuiltin.cpp | |
parent | d107be846f20568a26a41f408ed2ee70cd903833 (diff) | |
download | bcm5719-llvm-a274b209f5898feb31b28db27c503d3ed76455e5.tar.gz bcm5719-llvm-a274b209f5898feb31b28db27c503d3ed76455e5.zip |
AMDGPU: Add builtin for fmed3 intrinsic
llvm-svn: 293600
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index c70a447303f..9ecf118ed9e 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -8397,7 +8397,8 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID, case AMDGPU::BI__builtin_amdgcn_classf: case AMDGPU::BI__builtin_amdgcn_classh: return emitFPIntBuiltin(*this, E, Intrinsic::amdgcn_class); - + case AMDGPU::BI__builtin_amdgcn_fmed3f: + return emitTernaryBuiltin(*this, E, Intrinsic::amdgcn_fmed3); case AMDGPU::BI__builtin_amdgcn_read_exec: { CallInst *CI = cast<CallInst>( EmitSpecialRegisterBuiltin(*this, E, Int64Ty, Int64Ty, true, "exec")); |