Kevin Qin
ad64f6d4e5
[AArch64] Change int64_t from 'long long int' to 'long int' for AArch64 target.
...
Most 64-bit targets define int64_t as long int, and AArch64 should
make same definition to follow LP64 model. In GNU tool chain, int64_t
is defined as long int for 64-bit target. So to get consistent with GNU,
it's better Changing int64_t from 'long long int' to 'long int',
otherwise clang will get different name mangling suffix compared with g++.
llvm-svn: 202004
2014-02-24 02:45:03 +00:00
Aaron Ballman
ea6668c4e8
Moving the documentation for the type safety checking attributes into AttrDocs. If a custom heading is provided, do not automatically generate the alternate spelling list. This is necessary because some attributes have distinct semantic spellings and meanings, but use the same semantic attribute internally. Such attributes should have multiple elements in their documentation list, but not show all spellings. At some point, it would be nice to have a way to attach the documentation element to a specific spelling for these cases.
...
llvm-svn: 201851
2014-02-21 14:14:04 +00:00
Aaron Ballman
4de1b584cd
Refactored the way attribute category headers are handled so that it is possible to use custom categories. This allows for moving the consumable attributes (consumable, callable_when, return_typestate, etc) to be grouped together, with a content heading, like they were in the language extensions documentation. Moved the consumable attribute documentation from the language extensions into the attribute documentation table.
...
llvm-svn: 201732
2014-02-19 22:59:32 +00:00
Aaron Ballman
c7962868a2
Added a documentation category for statement attributes so that things like clang::fallthrough can be documented.
...
llvm-svn: 201714
2014-02-19 20:55:42 +00:00
Tim Northover
db3e5e2408
AArch64: look up EmitAArch64Scalar support before calling.
...
This fixes one immediate bug where an expression with side-effects
could be emitted twice during a NEON call.
It also prepares the way for folding CodeGen for many of the SISD
intrinsics into a table, reducing code size and hopefully increasing
performance eventually ("binary search + few switch cases" should be
better than "lots of switch cases").
llvm-svn: 201667
2014-02-19 11:55:06 +00:00
Tim Northover
2163a0e497
ARM & AArch64: move struct definition outside function.
...
Apparently it's not True C++.
rdar://problem/16035743 still.
llvm-svn: 201663
2014-02-19 10:56:23 +00:00
Tim Northover
544e79eb30
ARM NEON: use more flexible TableGen field for defs.
...
We used to have special handling for isCrypto and isA64 bits in the
NeonEmitter.cpp file (it knew the former was predicated on __ARM_FEATURE_CRYPTO
and the latter on __aarch64__ and went through various contortions to make sure
the correct intrinsics were emitted under the correct guard.
This is ugly and has obvious scalability problems (e.g. vcvtX intrinsics are
needed, which are ARMv8 only but available on both, yet another category). This
patch moves the #if predicate into the arm_neon.td file directly and makes
NeonEmitter.cpp agnostic about what goes in there.
It also deduplicates arm_neon.td so that each desired intrinsic is mentioned in
just one place (necessary because of the new mechanism for creating
arm_neon.h).
rdar://problem/16035743
llvm-svn: 201660
2014-02-19 10:37:09 +00:00
Tim Northover
12670418a3
ARM & AArch64: merge the semantic checking of NEON intrinsics
...
There are two kinds of automatically generated tests for NEON intrinsics, both
of which can be merged without adversely affecting users.
1. We check that a valid kind of __builtin_neon_XYZ overload is requested (e.g.
we're not asking for a float32x4_t version when it only accepts integers. Since
the __builtin_neon_XYZ intrinsics should only be used in arm_neon.h, relaxing
this test and permitting AArch64 types for AArch32 should not cause a problem.
The extra arm_neon.h definitions should be #ifdefed out anyway.
2. We check that intrinsics which take immediates are actually given
compile-time constants within range. Since all NEON intrinsics should be
backwards compatible, these tests should be identical on AArch64 and AArch32
anyway.
This patch, therefore, merges the separate AArch64 and 32-bit checks.
rdar://problem/16035743
llvm-svn: 201659
2014-02-19 10:37:05 +00:00
Aaron Ballman
06bd44b3e8
Forcing it to be an error when there is no Documentation list specified for an attribute. This is a bit of a (harmless) hack, but the FIXME explains why and when this hack can be removed. It's a justified hack because this prevents attribute authors from forgetting to add documentation when they add a new attribute.
...
llvm-svn: 201524
2014-02-17 18:23:02 +00:00
Aaron Ballman
1a3e5858b9
The default assignment operator could not be generated by all of the bots, but it's required by std::vector to operate properly.
...
llvm-svn: 201518
2014-02-17 16:18:32 +00:00
Aaron Ballman
51d40111b4
Removing a C++11'ism to also fix the build bots.
...
llvm-svn: 201517
2014-02-17 15:59:37 +00:00
Aaron Ballman
a66b574b28
Fixing build bot breakage due to using a local type as a template argument.
...
llvm-svn: 201516
2014-02-17 15:36:08 +00:00
Aaron Ballman
97dba048a3
Implements a declarative approach to documenting individual attributes in Clang via a Documentation tablegen class. Also updates the internals manual with information about how to use this new, required, documentation feature.
...
This patch adds some very, very sparse initial documentation for some attributes. Additional effort from attribute authors is greatly appreciated.
llvm-svn: 201515
2014-02-17 15:27:10 +00:00
Reid Kleckner
f06b266bfa
Attributes: Avoid a big useless copy in the emitter
...
llvm-svn: 201251
2014-02-12 19:26:24 +00:00
Reid Kleckner
f526b94858
Attributes: Emit enumerators in td file declaration order
...
llvm-svn: 201246
2014-02-12 18:22:18 +00:00
Tim Northover
26562486ad
Whitespace cleanup (mostly stray tabs, a few not-quite-empty lines).
...
llvm-svn: 201234
2014-02-12 12:56:48 +00:00
Tim Northover
3402dc7d52
ARM NEON: fix range checking on immediates.
...
Previously, range checking on the __builtin_neon_XYZ_v Clang intrinsics didn't
take account of the type actually passed to the call, which meant a request
like "vext_s16(a, b, 7)" was allowed through (TableGen was conservative and
allowed 0-7 for all types). This caused an assert in the backend because the
lane doesn't make sense.
llvm-svn: 201232
2014-02-12 12:04:59 +00:00
Ana Pazos
9883d6d2b5
[AArch64] Fixed vget/vset_lane_f16 implementation
...
Replaced cast and vreinterepret operations with
code to reinterpret bitwise the types float16_t and
int16_t.
llvm-svn: 201112
2014-02-10 21:20:53 +00:00
David Majnemer
4bb0980d96
MS ABI: Add support for #pragma pointers_to_members
...
Introduce a notion of a 'current representation method' for
pointers-to-members.
When starting out, this is set to 'best case' (representation method is
chosen by examining the class, selecting the smallest representation
that would work given the class definition or lack thereof).
This pragma allows the translation unit to dictate exactly what
representation to use, similar to how the inheritance model keywords
operate.
N.B. PCH support is forthcoming.
Differential Revision: http://llvm-reviews.chandlerc.com/D2723
llvm-svn: 201105
2014-02-10 19:50:15 +00:00
Tim Northover
02e38609e7
ARM: implement support for crypto intrinsics in arm_neon.h
...
llvm-svn: 200708
2014-02-03 17:28:04 +00:00
Tim Northover
c322f838bc
ARM & AArch64: share the BI__builtin_neon enum defs.
...
llvm-svn: 200470
2014-01-30 14:47:51 +00:00
Aaron Ballman
35db2b3d4c
Consolidating several table-generated files containing parser-related string switches into a single file. This reduces build-related complexity by replacing four separate projects (and table-gen instantiations) with a single one.
...
No functional changes intended.
llvm-svn: 200424
2014-01-29 22:13:45 +00:00
Aaron Ballman
c669cc0d77
Add a new attribute meta-spelling called "GCC" -- it widens into being a GNU spelling, and a CXX11 spelling with the namespace "gnu". It also sets a bit on the spelling certifying that it is known to GCC. From this, we can warn about the extension appropriately. As a consequence, the FunctionDefinition functionality is completely removed.
...
Replacing the functionality from r199676, which didn't solve the problem as elegantly.
llvm-svn: 200252
2014-01-27 22:10:04 +00:00
Jiangning Liu
bb59b3daa9
For AArch64 Neon, fix intrinsics implementation using nested macros.
...
llvm-svn: 200114
2014-01-26 03:38:42 +00:00
Aaron Ballman
81cb8cbfa6
Adds a getSemanticSpelling function to semantic attribute subclasses which have a meaningful semantic spelling. Adds a sibling function to parsed attribtues (via AttributeList) for getting the semantic spelling, if one were to exist. This can be used for cleaner code that deals directly with the semantic spellings (such as the MSInheritance attribute).
...
llvm-svn: 200041
2014-01-24 21:32:49 +00:00
Aaron Ballman
83f197b613
Since Visual Studio 2012 is the minimum version of MSVC we support, the old-style visualizers are being removed. Adding a Natvis replacement for the debugging visualizers.
...
llvm-svn: 200032
2014-01-24 19:46:45 +00:00
Aaron Ballman
bc909618f2
If an attribute has a semantically meaningful spelling (such as ArgumentWithTypeTagAttr or MSInheritanceAttr), display the spelling used for the attribute as part of the AST dump. This should ease debugging the AST for these attributes. Attributes without semantically meaningful spelling variations are not affected.
...
llvm-svn: 199834
2014-01-22 21:51:20 +00:00
Aaron Ballman
b9023ed0f6
Exposed a declarative way to specify that an attribute can be duplicated when merging attributes on a declaration. This replaces some hard-coded functionality from Sema.
...
llvm-svn: 199677
2014-01-20 18:07:09 +00:00
Aaron Ballman
9a99e0da5a
Remove some hard-coded specialness for thread-safety attributes from the parser, and made it more declarative. If an attribute is allowed to appear on a function definition when late parsed, it can now use the FunctionDefinition attribute subject. It's treated as a FunctionDecl for most purposes, except it also gets exposed on the AttributeList so that it can be used while parsing.
...
llvm-svn: 199676
2014-01-20 17:18:35 +00:00
NAKAMURA Takumi
c28a9a2c33
[CMake] Deprecate CLANG_RUNTIME_OUTPUT_INTDIR and CLANG_LIBRARY_OUTPUT_INTDIR.
...
LLVM_*_OUTPUT_INTDIR should be available everywhere. It was my mistake when I introduced INTDIR stuff.
llvm-svn: 199597
2014-01-19 13:00:01 +00:00
Alp Toker
96cf758d3a
Fix comment typos
...
llvm-svn: 199563
2014-01-18 21:49:37 +00:00
Aaron Ballman
07c3d53c88
When generating Spelling enumeration values, do not generate identifiers in the reserved namespace. Strip underscores as appropriate, taking care to not create duplicate identifiers.
...
llvm-svn: 199414
2014-01-16 19:44:01 +00:00
Aaron Ballman
4755304fd1
Fixing a warning that causes the sanitizer build disliked about mixing && and ||. Since this is generated code, the && has been removed from the expression entirely.
...
llvm-svn: 199392
2014-01-16 14:32:03 +00:00
Aaron Ballman
12b9f6535b
Factored some function-like type reasoning out of SemaDeclAttr and onto Decl itself. This allows for more declarative subjects in attribute tablegen where the attribute appertains to something function-like, but not strictly a FunctionDecl.
...
llvm-svn: 199387
2014-01-16 13:55:42 +00:00
Aaron Ballman
36a5350e51
Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute.
...
Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it.
llvm-svn: 199378
2014-01-16 13:03:14 +00:00
Kostya Serebryany
317e2c499d
replace LeakSanitizerIsTurnedOffForTheCurrentProcess with __lsan_is_turned_off, but this time hide it under __has_feature(address_sanitizer); also include <sanitizer/lsan_interface.h>
...
llvm-svn: 199303
2014-01-15 07:59:37 +00:00
Aaron Ballman
09e98ffa5b
When determining the attribute's parsed kind, pay attention to the syntax used. This fixes bugs where an attribute has differing GNU and Declspec spellings, but they are treated as the same. Eg) __declspec(aligned) when it should be __attribute__((aligned)), and __attribute__((align)) when it should be __declspec(align).
...
llvm-svn: 199144
2014-01-13 21:42:39 +00:00
Kostya Serebryany
a6afef7a51
reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off
...
llvm-svn: 198922
2014-01-10 08:05:42 +00:00
Aaron Ballman
0fa06d879a
__has_attribute now understands target-specific attributes. So when you ask whether an ARM target has the "interrupt" attribute, it will return true for ARM and MSP430 targets, and false for others.
...
llvm-svn: 198897
2014-01-09 22:57:44 +00:00
Aaron Ballman
ab7691c4ce
Removing the notion of TargetAttributesSema and replacing it with one where the parsed attributes are responsible for knowing their target-specific nature, instead of letting Sema figure it out. This is necessary so that __has_attribute can eventually determine whether a parsed attribute applies to the given target or not.
...
llvm-svn: 198896
2014-01-09 22:48:32 +00:00
Alp Toker
96af9886ef
Revert "Disable LeakSanitizer in TableGen binaries, see PR18325"
...
To declare or define reserved identifers is undefined behaviour in standard
C++. This needs to be addressed in compiler-rt before it can be used in LLVM.
See the list discussion for details.
This reverts commit r198858.
llvm-svn: 198885
2014-01-09 19:43:17 +00:00
Aaron Ballman
15b27b97b7
Removing a bit of custom parsing functionality used by the thread safety analysis APIs. Now using tablegen to determine whether an attribute's arguments should be parsed in an unevaluated context instead of relying on a separate, hard-coded list of attributes.
...
llvm-svn: 198883
2014-01-09 19:39:35 +00:00
Kostya Serebryany
bc60254543
Disable LeakSanitizer in TableGen binaries, see PR18325
...
llvm-svn: 198858
2014-01-09 09:26:26 +00:00
Chandler Carruth
5553d0d4ca
Sort all the #include lines with LLVM's utils/sort_includes.py which
...
encodes the canonical rules for LLVM's style. I noticed this had drifted
quite a bit when cleaning up LLVM, so wanted to clean up Clang as well.
llvm-svn: 198686
2014-01-07 11:51:46 +00:00
Aaron Ballman
0e468c02bc
This helper method isn't needed, and it's unsafe for it to use StringRef in the first place. Replaced the unsafe code with the proper accessor.
...
llvm-svn: 198569
2014-01-05 21:08:29 +00:00
Douglas Gregor
d1b760a670
CMake separate projects: finish output-directory changes.
...
Make sure clang-tblgen, clang++, and clang-cl get created in the Clang
binary build directory.
llvm-svn: 198331
2014-01-02 18:37:47 +00:00
DeLesley Hutchins
bb79c338ed
Update DataRecursiveASTVisitor so that it visits attributes.
...
llvm-svn: 198249
2013-12-30 21:03:02 +00:00
DeLesley Hutchins
c4a82438a7
Update RecursiveASTVisitor so that it visits attributes. This is currently
...
important for thread safety attributes, which contain expressions that were
not being visited, and were thus invisible to various tools. There are now
Visit*Attr methods that can be overridden for every attribute.
llvm-svn: 198224
2013-12-30 17:24:36 +00:00
Aaron Ballman
3e424b5070
Teach the diagnostics engine about the Attr type to make reporting on semantic attributes easier (and not require hard-coded strings). This requires a getSpelling() function on the Attr class, which is table-driven. Updates a handful of cases where a hard-coded string was being used to test the functionality out. Updating associated test cases for the improved quoting.
...
llvm-svn: 198055
2013-12-26 18:30:57 +00:00
Aaron Ballman
aa47d24a47
Reverting r197715 -- it appears that MSVC is happy with the code, but clang is not.
...
llvm-svn: 197716
2013-12-19 19:39:25 +00:00
Aaron Ballman
ced10529fe
No longer leaking Argument objects after calling createArgument. However, since an OwningPtr cannot live in a std::vector yet, there are some manual deletions that have a FIXME attached to them. These will go away once C++11 support is allowed.
...
llvm-svn: 197715
2013-12-19 19:33:35 +00:00
Aaron Ballman
e615393356
Removing the SourceLocation unused attribute argument type.
...
llvm-svn: 197707
2013-12-19 18:10:57 +00:00
Aaron Ballman
8edb5c2081
Refactor the Microsoft inheritance attribute handling so that it no longer has special treatment. Also fixes a minor bug where the attributes were being parsed as though they were GNU-style attributes when they were in fact keyword attributes.
...
llvm-svn: 197629
2013-12-18 23:44:18 +00:00
Aaron Ballman
64e6986e39
Allow target-specific attributes to share a spelling between different attributes via the ParseKind field. Attributes will be given a common parsed attribute identifier (the AttributeList::AT_* enum), but retain distinct Attr subclasses.
...
This new functionality is used to implement the ARM and MSP430 interrupt attribute.
Patch reviewed by Richard Smith over IRC.
llvm-svn: 197343
2013-12-15 13:05:48 +00:00
Ted Kremenek
d980da2290
Enhance attribute machinery to include ObjCProtocols as "subjects" in attribute declarations.
...
llvm-svn: 196954
2013-12-10 19:43:42 +00:00
Kevin Qin
fb79d7f843
[AArch64 NEON] Support poly128_t and implement relevant intrinsic.
...
llvm-svn: 196888
2013-12-10 06:49:01 +00:00
Ana Pazos
6a8b8b5f0d
Implemented vget/vset_lane_f16 intrinsics
...
llvm-svn: 196535
2013-12-05 21:13:24 +00:00
Alp Toker
d473363876
Correct hyphenations in comments and assert messages
...
This patch tries to avoid unrelated changes other than fixing a few
hyphen-related ambiguities in nearby lines.
llvm-svn: 196466
2013-12-05 04:47:09 +00:00
Aaron Ballman
00dcc43b56
Typo caught by Alp Toker: s/appertain/appertains
...
llvm-svn: 196273
2013-12-03 13:45:50 +00:00
Hao Liu
a5246fde90
[AArch64]Add missing floating point convert, round and misc intrinsics.
...
E.g. int64x1_t vcvt_s64_f64(float64x1_t a) -> FCVTZS Dd, Dn
llvm-svn: 196211
2013-12-03 06:07:13 +00:00
Hao Liu
4b850c5e0d
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.
llvm-svn: 196205
2013-12-03 05:35:17 +00:00
Jiangning Liu
cc1da2c938
Add some missing AArch64 Neon intrinsics like vmull_high_n_s16 and friends.
...
llvm-svn: 196189
2013-12-03 01:28:55 +00:00
Chad Rosier
b0574f3bf7
[AArch64] Add missing NEON scalar floating-point to integer convert ACLEs.
...
llvm-svn: 196152
2013-12-02 21:07:24 +00:00
Aaron Ballman
93b5cc6db8
Rectifying style issues with generated code. No functional change intended.
...
llvm-svn: 196142
2013-12-02 19:36:42 +00:00
Aaron Ballman
3aff633590
Automate attribute language option checking by specifying the list of options to test in tablegen.
...
llvm-svn: 196138
2013-12-02 19:30:36 +00:00
Aaron Ballman
604dfec8dc
Re-enabled support for the Subjects for the weak attribute. This changes the diagnostic involved to be more accurate -- for C++ code, it will now report that weak applies to variables, functions or classes. Added additional test case for this.
...
llvm-svn: 196120
2013-12-02 17:07:07 +00:00
Aaron Ballman
a358c9051e
Using the proper set key when determining whether a SubsetSubject helper method has been previously generated.
...
llvm-svn: 196103
2013-12-02 14:58:17 +00:00
Aaron Ballman
4cfafb9a85
Fixes a possible assert in the custom SubsetSubject logic for the attr emitter.
...
llvm-svn: 195962
2013-11-29 16:12:29 +00:00
Aaron Ballman
80469038c0
Enables support for custom subject lists for attributes. As a testbed, uses the custom subject for the ibaction attribute.
...
llvm-svn: 195960
2013-11-29 14:57:58 +00:00
Hao Liu
46a6ed9e64
AArch64: Two intrinsics are expected to return float64 not float32 in arm_neon.h
...
llvm-svn: 195943
2013-11-29 02:31:42 +00:00
Hao Liu
8a0099e02c
Fix the problem that the range check for scalar narrow shift is too wide.
...
E.g. the immediate value of vshrns_n_s16 is [1,16], which should be [1,8].
llvm-svn: 195942
2013-11-29 02:13:17 +00:00
Aaron Ballman
c1494bddc1
Renaming Struct to GenericRecord for clarity; could not use Record as the enumerant because that's already taken by the Record class.
...
llvm-svn: 195875
2013-11-27 20:14:30 +00:00
Aaron Ballman
17046b8506
Automated checking for C++ when determining what argument to send to the diagnostic for attribute subjects. In turn, this allows the Subjects to be enabled for some more attributes and improves diagnostics. Updated a test case based on the improved diagnostic.
...
llvm-svn: 195864
2013-11-27 19:16:55 +00:00
Jiangning Liu
ee3e08799c
Fix the AArch64 NEON bug exposed by checking constant integer argument range of ACLE intrinsics.
...
llvm-svn: 195844
2013-11-27 14:02:55 +00:00
Aaron Ballman
74eeeae3d3
Laying the basic groundwork for table generating the diagnostics for attribute subjects. This makes some modifications to the way subjects are listed in Attr.td, and updates the attr emitter to handle the new constructs.
...
I have disabled some attribute subject lines on purpose in Attr.td;
this part is a WIP with the goal being to restore those subjects
incrementally. By commenting them out, it leaves the original behavior
the same as before for those attributes and so those are not
functionality changes.
llvm-svn: 195841
2013-11-27 13:27:02 +00:00
Alp Toker
965f882588
Remove a whole lot of unused variables
...
There are about 30 removed in this patch, generated by a new FixIt I haven't
got round to submitting yet.
llvm-svn: 195814
2013-11-27 05:22:15 +00:00
Richard Smith
852e9ce3dd
Remove 'DistinctSpellings' support from Attr.td and change its only user to
...
look at the attribute spelling instead. The 'ownership_*' attributes should
probably be split into separate *Attr classes, but that's more than I wanted to
do here.
llvm-svn: 195805
2013-11-27 01:46:48 +00:00
Tim Northover
5bb34ca4df
ARM: define & use __ARM_NEON on ARM32 (as per ACLE)
...
There seem to be quite a few references to the old macro __ARM_NEON__ on the
internet, so I don't think it's a good idea to remove it entirely (at least
yet), but the canonical name does not have the trailing underscores so we
should use that ourselves.
llvm-svn: 195353
2013-11-21 12:36:34 +00:00
Ana Pazos
2b02688fd9
Implemented Neon scalar by element intrinsics.
...
Intrinsics implemented: vqdmull_lane, vqdmulh_lane, vqrdmulh_lane,
vqdmlal_lane, vqdmlsl_lane scalar Neon intrinsics.
llvm-svn: 195326
2013-11-21 07:36:33 +00:00
Aaron Ballman
18a7838e3e
Implemented DefaultIntArgument in the table generator and start using it in semantic analysis. Removes some magic numbers.
...
llvm-svn: 195287
2013-11-21 00:28:23 +00:00
Jiangning Liu
3311f374a8
Add predicate for AArch64 crypto instructions.
...
llvm-svn: 195069
2013-11-19 01:38:19 +00:00
Jiangning Liu
c8b0a1ad95
Clean up predefined macros for AArch64 to follow ACLE 2.0.
...
llvm-svn: 195068
2013-11-19 01:33:17 +00:00
Hao Liu
5e4ce1ae9d
Implement the newly added AArch64 ACLE functions for ld1/st1 with 2/3/4 vectors.
...
The functions are like: vst1_s8_x2 ...
llvm-svn: 194991
2013-11-18 06:33:43 +00:00
Ana Pazos
6f2a47a9e5
Implemented aarch64 Neon scalar vmulx_lane intrinsics
...
Implemented aarch64 Neon scalar vfma_lane intrinsics
Implemented aarch64 Neon scalar vfms_lane intrinsics
Implemented legacy vmul_n_f64, vmul_lane_f64, vmul_laneq_f64
intrinsics (v1f64 parameter type) using Neon scalar instructions.
Implemented legacy vfma_lane_f64, vfms_lane_f64,
vfma_laneq_f64, vfms_laneq_f64 intrinsics (v1f64 parameter type)
using Neon scalar instructions.
llvm-svn: 194889
2013-11-15 23:33:31 +00:00
Kevin Qin
caac85e612
[AArch64 neon] support poly64 and relevant intrinsic functions.
...
llvm-svn: 194660
2013-11-14 03:29:16 +00:00
Kevin Qin
1718af6f0a
Implement aarch64 neon instruction class misc.
...
llvm-svn: 194657
2013-11-14 02:45:18 +00:00
Jiangning Liu
18b707cb3f
Implement AArch64 NEON instruction set AdvSIMD (table).
...
llvm-svn: 194649
2013-11-14 01:57:55 +00:00
Dmitri Gribenko
d9febeb884
Documentation parsing: add support for \throws \throw \exception commands
...
llvm-svn: 194521
2013-11-12 22:16:08 +00:00
Richard Smith
16e1b07597
Rather than duplicating extension diagnostics to allow them to cause a
...
substitution failure, allow a flag to be set on the Diagnostic object,
to mark it as 'causes substitution failure'.
Refactor Diagnostic.td and the tablegen to use an enum for SFINAE behavior
rather than a bunch of flags.
llvm-svn: 194444
2013-11-12 02:41:45 +00:00
Chad Rosier
249c714bb4
[AArch64] Add support for NEON scalar floating-point convert to fixed-point instructions.
...
llvm-svn: 194395
2013-11-11 18:04:22 +00:00
Jiangning Liu
c628af66c7
Implement AArch64 Neon instruction set Perm.
...
llvm-svn: 194124
2013-11-06 03:35:53 +00:00
Kevin Qin
9eece7b5e0
Implemented aarch64 neon intrinsic vcopy_lane with float type.
...
llvm-svn: 194042
2013-11-05 02:05:44 +00:00
Aaron Ballman
4768b31797
Attributes which accept a type as their sole argument are no longer hard coded into the parser. Instead, they are automatically listed through tablegen.
...
llvm-svn: 193989
2013-11-04 12:55:56 +00:00
Richard Smith
b87c465391
Store a TypeArgument on an attribute as a TypeSourceInfo*, rather than as a
...
QualType with a SourceLocation stashed alongside.
llvm-svn: 193803
2013-10-31 21:23:20 +00:00
Chad Rosier
bdca387884
[AArch64] Add support for NEON scalar shift immediate instructions.
...
llvm-svn: 193791
2013-10-31 19:29:05 +00:00
Chad Rosier
4d55e6e0a4
[AArch64] Add support for NEON scalar floating-point compare instructions.
...
llvm-svn: 193692
2013-10-30 15:20:07 +00:00
Richard Smith
66e7168f8d
PR17666: Instead of allowing an initial identifier argument in any attribute
...
which we don't think can't have one, only allow it in the tiny number of
attributes which opts into this weird parse rule.
I've manually checked that the handlers for all these attributes can in fact
cope with an identifier as the argument. This is still somewhat terrible; we
should move more fully towards picking the parsing rules based on the
attribute, and make the Parse -> Sema interface more type-safe.
llvm-svn: 193295
2013-10-24 01:07:54 +00:00
Chad Rosier
3c03dee1d1
[AArch64] Add support for NEON scalar extract narrow instructions.
...
llvm-svn: 192971
2013-10-18 14:03:36 +00:00
Kevin Qin
f22bf50443
Implemented aarch64 SIMD copy related ACLE intrinsic :
...
vget_lane, vset_lane, vcopy_lane, vcreate, vdup_n, vdup_lane, vmov_n.
llvm-svn: 192411
2013-10-11 02:34:30 +00:00
Chad Rosier
0babda4b9c
[AArch64] Add support for NEON scalar signed/unsigned integer to floating-point
...
convert instructions.
llvm-svn: 192232
2013-10-08 20:43:46 +00:00