llvm-project/clang/lib/Sema
Florian Hahn c92ec0dd92
[Matrix] Add support for matrix-by-scalar division.
This patch extends the matrix spec to allow matrix-by-scalar division.

Originally support for `/` was left out to avoid ambiguity for the
matrix-matrix version of `/`, which could either be elementwise or
specified as matrix multiplication M1 * (1/M2).

For the matrix-scalar version, no ambiguity exists; `*` is also
an elementwise operation in that case. Matrix-by-scalar division
is commonly supported by systems including Matlab, Mathematica
or NumPy.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D97857
2021-03-11 22:21:23 +00: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] Add missing atomic_xchg overload 2021-03-11 10:20:29 +00:00
ParsedAttr.cpp Move some attribute diagnostic helper functions; NFC. 2021-03-09 14:57:00 -05:00
Scope.cpp
ScopeInfo.cpp [clang] Enable support for #pragma STDC FENV_ACCESS 2020-10-25 06:46:25 -07:00
Sema.cpp Fix signed-compare warning. 2021-02-25 18:14:40 -08:00
SemaAccess.cpp [clang] Fix an assertion crash in delayed access check. 2020-11-13 14:02:57 +01:00
SemaAttr.cpp Support `#pragma clang section` directives on MachO targets 2021-02-25 09:30:10 -08:00
SemaAvailability.cpp Prune TargetInfo.h include from ParsedAttr.h, NFC 2020-03-11 20:47:11 -07:00
SemaCUDA.cpp [CUDA][HIP] Fix checking dependent initalizer 2021-02-04 18:04:54 -05:00
SemaCXXScopeSpec.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaCast.cpp [AArch64][SVE] Allow C-style casts between fixed-size and scalable vectors 2020-11-19 11:18:35 +00:00
SemaChecking.cpp [Sema] Fix diagnostics for one-byte length modifier 2021-03-09 16:56:20 +01:00
SemaCodeComplete.cpp [clang][CodeComplete] Ensure there are no crashes when completing with ParenListExprs as LHS 2021-02-22 10:01:22 +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] Handle non-function context before checking for diagnostic 2021-03-05 12:37:49 -08:00
SemaDeclAttr.cpp [Sema] Use castAs<> instead getAs<> for dereferenced pointer casts. NFCI. 2021-03-11 14:51:25 +00:00
SemaDeclCXX.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00: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 [clang][OpenMP] Use OpenMPIRBuilder for workshare loops. 2021-03-04 22:52:59 -06:00
SemaExpr.cpp [Matrix] Add support for matrix-by-scalar division. 2021-03-11 22:21:23 +00:00
SemaExprCXX.cpp [Sema] Add some basic lambda capture fix-its 2021-03-11 13:46:25 +00: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 [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
SemaLambda.cpp Recommit of a2fdf9d4d7. 2021-02-05 11:27:30 -05:00
SemaLookup.cpp [OpenCL] Set calling convention for -fdeclare-opencl-builtins 2021-03-10 10:03:57 +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] Handle non-function context before checking for diagnostic 2021-03-05 12:37:49 -08:00
SemaOverload.cpp [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +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 [clang] Fix crash when creating deduction guide. 2021-03-09 16:57:56 +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 [clang] Fix constrained decltype(auto) deduction 2021-03-05 18:20:09 -08:00
TreeTransform.h [Clang][Sema] Warn when function argument is less aligned than parameter 2021-03-09 10:37:32 +00:00
TypeLocBuilder.cpp [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
TypeLocBuilder.h [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
UsedDeclVisitor.h DeferredDiagnosticsEmitter crashes 2020-10-08 11:42:21 -04:00