llvm-project/clang/lib/Sema
Hsiangkai Wang 766ee1096f [Clang][RISCV] Define RISC-V V builtin types
Add the types for the RISC-V V extension builtins.

These types will be used by the RISC-V V intrinsics which require
types of the form <vscale x 1 x i64>(LMUL=1 element size=64) or
<vscale x 4 x i32>(LMUL=2 element size=32), etc. The vector_size
attribute does not work for us as it doesn't create a scalable
vector type. We want these types to be opaque and have no operators
defined for them. We want them to be sizeless. This makes them
similar to the ARM SVE builtin types. But we will have quite a bit
more types. This patch adds around 60. Later patches will add
another 230 or so types representing tuples of these types similar
to the x2/x3/x4 types in ARM SVE. But with extra complexity that
these types are combined with the LMUL concept that is unique to
RISCV.

For more background see this RFC
http://lists.llvm.org/pipermail/llvm-dev/2020-October/145850.html

Authored-by: Roger Ferrer Ibanez <roger.ferrer@bsc.es>
Co-Authored-by: Hsiangkai Wang <kai.wang@sifive.com>

Differential Revision: https://reviews.llvm.org/D92715
2021-02-18 10:17:31 +08:00
..
AnalysisBasedWarnings.cpp [-Wcalled-once-parameter] Introduce 'called_once' attribute 2021-01-05 18:26:44 +03:00
CMakeLists.txt [Clang][Attr] Introduce the `assume` function attribute 2020-12-15 16:51:34 -06:00
CodeCompleteConsumer.cpp [Sema] Use isa<> instead of dyn_cast<> as pointer is never dereferenced. NFCI. 2020-11-15 12:58:36 +00:00
CoroutineStmtBuilder.h
DeclSpec.cpp [clang] Use SourceLocations in unions [NFCI] 2021-01-14 10:56:53 +00:00
DelayedDiagnostic.cpp
IdentifierResolver.cpp
JumpDiagnostics.cpp [OPENMP]Simplify representation for atomic, critical, master and section 2020-08-07 09:58:23 -04:00
MultiplexExternalSemaSource.cpp Merge some of the PCH object support with modular codegen 2020-07-22 12:46:12 -07:00
OpenCLBuiltins.td [OpenCL] Support enum and typedef args in TableGen BIFs 2021-02-17 14:17:43 +00:00
ParsedAttr.cpp [Sema] Silence warnings when targeting x86 with VS2019 16.5.4 2020-05-06 09:11:59 -04:00
Scope.cpp
ScopeInfo.cpp [clang] Enable support for #pragma STDC FENV_ACCESS 2020-10-25 06:46:25 -07:00
Sema.cpp [Clang][RISCV] Define RISC-V V builtin types 2021-02-18 10:17:31 +08:00
SemaAccess.cpp [clang] Fix an assertion crash in delayed access check. 2020-11-13 14:02:57 +01:00
SemaAttr.cpp [Frontend] Add pragma align natural and sort out pragma pack stack effect 2021-01-13 10:53:24 -05:00
SemaAvailability.cpp
SemaCUDA.cpp [CUDA][HIP] Fix checking dependent initalizer 2021-02-04 18:04:54 -05:00
SemaCXXScopeSpec.cpp
SemaCast.cpp [AArch64][SVE] Allow C-style casts between fixed-size and scalable vectors 2020-11-19 11:18:35 +00:00
SemaChecking.cpp Revert "[Sema] Fix -Warray-bounds false negative when casting an out-of-bounds array item" 2021-02-08 06:38:31 -06:00
SemaCodeComplete.cpp [CodeComplete] Member completion: heuristically resolve some dependent base exprs 2021-02-11 11:03:40 +01:00
SemaConcept.cpp Where possible, don't try to ask whether a template argument is 2020-12-17 23:23:05 -08:00
SemaConsumer.cpp
SemaCoroutine.cpp [C++20] [P1825] More implicit moves 2021-02-16 17:24:20 -05:00
SemaDecl.cpp [OpenMP] Delay more diagnostics of potentially non-emitted code 2021-02-15 13:17:05 -06:00
SemaDeclAttr.cpp Correct swift_bridge duplicate attribute warning logic 2021-02-11 07:11:27 -05:00
SemaDeclCXX.cpp [OpenCL] Create VoidPtrTy with generic AS in C++ for OpenCL mode 2021-02-17 12:18:46 +03:00
SemaDeclObjC.cpp Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)" 2021-01-04 23:17:45 +01:00
SemaExceptionSpec.cpp [OpenMP] Implement '#pragma omp tile', by Michael Kruse (@Meinersbur). 2021-02-16 09:45:07 -08:00
SemaExpr.cpp [Clang][RISCV] Define RISC-V V builtin types 2021-02-18 10:17:31 +08:00
SemaExprCXX.cpp [clang][PATCH] Fix bug 48848 assertion related to recoverFromMSUnqualifiedLookup 2021-02-01 10:56:47 -08:00
SemaExprMember.cpp [clang] Fix noderef for AddrOf on MemberExpr 2020-12-07 14:48:41 -08:00
SemaExprObjC.cpp Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)" 2021-01-04 23:17:45 +01:00
SemaFixItUtils.cpp
SemaInit.cpp PR48545: Access check the inherited constructor, not the inheriting 2021-02-09 13:27:55 -08:00
SemaLambda.cpp Recommit of a2fdf9d4d7. 2021-02-05 11:27:30 -05:00
SemaLookup.cpp [OpenCL] Support enum and typedef args in TableGen BIFs 2021-02-17 14:17:43 +00:00
SemaModule.cpp Change Module::ASTFile and ModuleFile::File => Optional<FileEntryRef>, NFC 2020-11-02 15:11:51 -05:00
SemaObjCProperty.cpp Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)" 2021-01-04 23:17:45 +01:00
SemaOpenMP.cpp [OpenMP] Fix a warning on an unused variable 2021-02-16 23:46:21 -08:00
SemaOverload.cpp [Sema] diagnoseEquivalentInternalLinkageDeclarations - assert for non-null NamedDecl. NFCI. 2021-01-26 15:51:49 +00:00
SemaPseudoObject.cpp Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)" 2021-01-04 23:17:45 +01:00
SemaSYCL.cpp Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-10-19 17:48:04 -04:00
SemaStmt.cpp [C++20] [P1825] More implicit moves 2021-02-16 17:24:20 -05:00
SemaStmtAsm.cpp Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)" 2021-01-04 23:17:45 +01:00
SemaStmtAttr.cpp Treat opencl_unroll_hint subject errors as semantic rather than parse errors 2021-02-05 07:20:41 -05:00
SemaTemplate.cpp Revert "Following up on PR48517, fix handling of template arguments that refer" 2021-01-20 15:55:35 +01:00
SemaTemplateDeduction.cpp [OpenCL] Fix default address space in template argument deduction. 2021-02-04 13:51:53 +00:00
SemaTemplateInstantiate.cpp Revert "Following up on PR48517, fix handling of template arguments that refer" 2021-01-20 15:55:35 +01:00
SemaTemplateInstantiateDecl.cpp [clang] Fix a nullptr dereference bug on invalid code 2021-01-25 15:02:25 +01:00
SemaTemplateVariadic.cpp Revert "Following up on PR48517, fix handling of template arguments that refer" 2021-01-20 15:55:35 +01:00
SemaType.cpp [OpenCL] Introduce new language options for OpenCL keywords. 2021-02-05 11:18:48 +03:00
TreeTransform.h [OpenMP] Implement '#pragma omp tile', by Michael Kruse (@Meinersbur). 2021-02-16 09:45:07 -08:00
TypeLocBuilder.cpp
TypeLocBuilder.h
UsedDeclVisitor.h DeferredDiagnosticsEmitter crashes 2020-10-08 11:42:21 -04:00