diff options
| author | Hao Liu <Hao.Liu@arm.com> | 2013-12-03 05:35:17 +0000 |
|---|---|---|
| committer | Hao Liu <Hao.Liu@arm.com> | 2013-12-03 05:35:17 +0000 |
| commit | 22b0d8d303e384fde99321caab37125ecaeb55fd (patch) | |
| tree | 3c0293c2553f9f578991a5c3487fdde96b11f37a /utils/TableGen/NeonEmitter.cpp | |
| parent | 14f260852f70f352db83470f40805e47b75db06a (diff) | |
| download | clang-22b0d8d303e384fde99321caab37125ecaeb55fd.tar.gz clang-22b0d8d303e384fde99321caab37125ecaeb55fd.tar.bz2 clang-22b0d8d303e384fde99321caab37125ecaeb55fd.tar.xz | |
revert r196152.
This is a duplicate implementation.
E.g. this patch defines:
float64_t vabd_f64(float64_t a, float64_t b)
But there is already a similar intrinsic "vabdd_f64" with the same types.
Also, this intrinsic will be conflicted to the vector type intrinsic as following(Which is implemented by me and will be committed to trunk):
float64x1_t vabd_f64(float64x1_t a, float64x1_t b).
Two functions shouldn't have a same name in arm_neon.h.
According to ARM ACLE document, such vabd_f64 with float64_t is not existing.
So I revert this commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/NeonEmitter.cpp')
| -rw-r--r-- | utils/TableGen/NeonEmitter.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index 32743f89bb..59c964b890 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp @@ -391,8 +391,8 @@ static void ParseTypes(Record *r, std::string &s, int len = 0; for (unsigned i = 0, e = s.size(); i != e; ++i, ++len) { - if (data[len] == 'P' || data[len] == 'Q' || data[len] == 'U' || - data[len] == 'H' || data[len] == 'S' || data[len] == 'T') + if (data[len] == 'P' || data[len] == 'Q' || data[len] == 'U' + || data[len] == 'H' || data[len] == 'S') continue; switch (data[len]) { @@ -480,9 +480,9 @@ static std::string GetNarrowTypestr(StringRef ty) static char ClassifyType(StringRef ty, bool &quad, bool &poly, bool &usgn) { unsigned off = 0; // ignore scalar. - if (ty[off] == 'S' || ty[off] == 'T') + if (ty[off] == 'S') { ++off; - + } // remember quad. if (ty[off] == 'Q' || ty[off] == 'H') { quad = true; @@ -897,14 +897,9 @@ static void InstructionTypeCode(const StringRef &typeStr, static char Insert_BHSD_Suffix(StringRef typestr){ unsigned off = 0; - - // Don't include the BHSD suffix. - if (typestr[0] == 'T') - return 0; - - if (typestr[off++] == 'S') { - while (typestr[off] == 'Q' || typestr[off] == 'H'|| - typestr[off] == 'P' || typestr[off] == 'U') + if(typestr[off++] == 'S'){ + while(typestr[off] == 'Q' || typestr[off] == 'H'|| + typestr[off] == 'P' || typestr[off] == 'U') ++off; switch (typestr[off]){ default : break; @@ -932,8 +927,7 @@ static bool endsWith_xN(std::string const &name) { /// MangleName - Append a type or width suffix to a base neon function name, /// and insert a 'q' in the appropriate location if type string starts with 'Q'. /// E.g. turn "vst2_lane" into "vst2q_lane_f32", etc. -/// Insert proper 'b' 'h' 's' 'd' if prefix 'S' is used. Do not insert size -/// suffix if the prefix 'T' is used. +/// Insert proper 'b' 'h' 's' 'd' if prefix 'S' is used. static std::string MangleName(const std::string &name, StringRef typestr, ClassKind ck) { if (name == "vcvt_f32_f16" || name == "vcvt_f32_f64") |
