[PATCH] D46131: Add Microsoft Mangling for OpenCL Half Type
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 1 07:19:52 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL331263: Add Microsoft Mangling for OpenCL Half Type (authored by erichkeane, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D46131?vs=144139&id=144712#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46131
Files:
cfe/trunk/lib/AST/MicrosoftMangle.cpp
cfe/trunk/test/CodeGenOpenCL/half.cl
Index: cfe/trunk/test/CodeGenOpenCL/half.cl
===================================================================
--- cfe/trunk/test/CodeGenOpenCL/half.cl
+++ cfe/trunk/test/CodeGenOpenCL/half.cl
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -emit-llvm -o - -triple spir-unknown-unknown | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -triple x86_64-pc-win32 | FileCheck %s
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
Index: cfe/trunk/lib/AST/MicrosoftMangle.cpp
===================================================================
--- cfe/trunk/lib/AST/MicrosoftMangle.cpp
+++ cfe/trunk/lib/AST/MicrosoftMangle.cpp
@@ -1923,8 +1923,11 @@
mangleArtificalTagType(TTK_Struct, "_Float16", {"__clang"});
break;
- case BuiltinType::Float128:
- case BuiltinType::Half: {
+ case BuiltinType::Half:
+ mangleArtificalTagType(TTK_Struct, "_Half", {"__clang"});
+ break;
+
+ case BuiltinType::Float128: {
DiagnosticsEngine &Diags = Context.getDiags();
unsigned DiagID = Diags.getCustomDiagID(
DiagnosticsEngine::Error, "cannot mangle this built-in %0 type yet");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46131.144712.patch
Type: text/x-patch
Size: 1096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180501/755ad638/attachment.bin>
More information about the cfe-commits
mailing list