- Apr 25, 2023
-
-
Emilio Cota authored
To avoid circular deps. While at it, add missing dep on CAPIIR.
-
Ethan Luis McDonough authored
Plugin that counts the number of times each tree node occurs in a given program. Used for test coverage. Updated to fix build issues. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D143704
-
Jie Fu authored
/Users/jiefu/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:2636:10: error: 'makeArrayRef<std::pair<llvm::MachineMemOperand::Flags, const char *>, 2UL>' is deprecated: Use deduction guide instead [-Werror,-Wdeprecated-declarations] return makeArrayRef(TargetFlags); ^~~~~~~~~~~~ ArrayRef /Users/jiefu/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:572:3: note: 'makeArrayRef<std::pair<llvm::MachineMemOperand::Flags, const char *>, 2UL>' has been explicitly marked deprecated here LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef") ^ /Users/jiefu/llvm-project/llvm/include/llvm/Support/Compiler.h:143:50: note: expanded from macro 'LLVM_DEPRECATED' ^ 1 error generated. -
Alex Zinenko authored
In the Linalg detensorize pass, dialect conversion could accidentally trigger signature conversion of the function entry block after inlining the body of a Linalg generic into it. Such a conversion is not desirable because it would break the internal validity of the function op, that is futhermore not supposed to be detensorized at the boundary. Mitigate this by creating a dummy (empty) entry block so Linalg operations are never inlined into it and the conversion is never triggered. Closes #62249. Reviewed By: silvas Differential Revision: https://reviews.llvm.org/D148983
-
LLVM GN Syncbot authored
-
Piyou Chen authored
This commit implements the two NTLH intrinsic functions. ``` type __riscv_ntl_load (type *ptr, int domain); void __riscv_ntl_store (type *ptr, type val, int domain); ``` ``` enum { __RISCV_NTLH_INNERMOST_PRIVATE = 2, __RISCV_NTLH_ALL_PRIVATE, __RISCV_NTLH_INNERMOST_SHARED, __RISCV_NTLH_ALL }; ``` We encode the non-temporal domain into MachineMemOperand flags. 1. Create the RISC-V built-in function with custom semantic checking. 2. Assume the domain argument is a compile time constant, and make it as LLVM IR metadata (nontemp_node). 3. Encode domain value as two bits MachineMemOperand TargetMMOflag. 4. According to MachineMemOperand TargetMMOflag, select corrsponding ntlh instruction. Currently, it supports scalar type and fixed-length vector type. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D143364 -
Fangrui Song authored
Remove a FIXME. For simplicity, the error message for the missing argument case has changed from err_drv_missing_argument to err_drv_invalid_argument_to_option, which should be fine.
-
Matt Arsenault authored
Port from the existing handling in cannotBeOrderedLessThanZero
-
Matt Arsenault authored
-
Emilio Cota authored
When writing 5f2b0892 "[bazel][mlir] BreakpointManager fixes for 7f069f5e", I did not notice that 17c6de3f "[bazel] Fix bazel build for 7f069f5e.." had added Debug/BreakpointManagers globs to the Debug target. But these are already being built in the "BreakpointManagers" target; remove them from "Debug".
-
Craig Topper authored
Without this, the original reduction will not be removed and we'll end up with a second reduction. Reductions are expensive operations so we should avoid that.
-
Craig Topper authored
We don't check that the extract_vector_elt has one use in combineBinOpToReduce.
-
Robert Suderman authored
It is possible for `tosa.const` to have a quantized return type. In these cases we need to retain the expected result type to avoid potential type mismatches further in the model. Reviewed By: cota Differential Revision: https://reviews.llvm.org/D149109
-
Craig Topper authored
It's not enough for the vector we're inserting into to be undef. We also need to be inserting into the lowest subvector. Spotted by inspection while trying to figure out why this doesn't work for vp.reduce.fadd.
-
LLVM GN Syncbot authored
-
NAKAMURA Takumi authored
- Define `IIT_Info` in `Intrinsics.td` - Implement `EmitIITInfo` in `IntrinsicEmitter.cpp` - Use generated `IIT_Info` in `Function.cpp` Depends on D145873 and D146179 Differential Revision: https://reviews.llvm.org/D146914
-
NAKAMURA Takumi authored
Part of D146914
-
NAKAMURA Takumi authored
Introduce VTAny as `isOverloaded = true`. ValueType.isOverloaded` is used for; - Define `iPTRAny`, `vAny`, `fAny`, and `Any` - Reflect `ValueType.isOverloaded` to `LLVMType.isAny` in `Intrinsics.td` - (Planninig) Reflect the condition to `MVT::isOverloaded()` Introduce some fields in `ValueType` - LLVMName - isInteger - isFP - isVector - isScalable - nElem - ElementType Introduce `VTVec<int nelem, ValueType elt, int value>` to represent the element type. VTVec.Size may be calculated by `!mul(nelem, elt.Size)`. Introduce `list<ValueType> ValueTypes` as convention for lookup. Differential Revision: https://reviews.llvm.org/D146179
-
NAKAMURA Takumi authored
`ValueType.isOverloaded` is used for; - Define `iPTRAny`, `vAny`, `fAny`, and `Any` - Reflect `ValueType.isOverloaded` to `LLVMType.isAny` in `Intrinsics.td` - (Planninig) Reflect the condition to `MVT::isOverloaded()` Part of D146179
-
NAKAMURA Takumi authored
-
NAKAMURA Takumi authored
Before restoring `CodeGen/LowLevelType`, rename this to `LowLevelTypeUtils`. Differential Revision: https://reviews.llvm.org/D148768
-
MalavikaSamak authored
This reverts commit 84ec1f77.
-
MalavikaSamak authored
This reverts commit 9bd0db80.
-
Siva Chandra Reddy authored
The bots are timing out because they are trying to run this test. Differential Revision: https://reviews.llvm.org/D149108
-
Jie Fu authored
/Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case Strategy::Kind::Wontfix: ^ /Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: note: insert 'LLVM_FALLTHROUGH;' to silence this warning case Strategy::Kind::Wontfix: ^ LLVM_FALLTHROUGH; /Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: note: insert 'break;' to avoid fall-through case Strategy::Kind::Wontfix: ^ break; 1 error generated. -
Siva Chandra Reddy authored
Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D149105
-
Shubham Sandeep Rastogi authored
load if the load is moved due to the pre register allocation ld/st optimization pass The issue here is that there can be a scenario where debug information is lost because of the pre register allocation load store optimization pass, where a load who's result describes the debug infomation for a local variable gets moved below the load and that causes the debug information for that load to get lost. Example: Before the Pre Register Allocation Load Store Pass inst_a %2 = ld ... inst_b DBG_VALUE %2, "x", ... %3 = ld ... After the Pass: inst_a inst_b DBG_VALUE %2, "x", ... %2 = ld ... %3 = ld ... The load has now been moved to after the DBG_VAL that uses its result and the debug info for "x" has been lost. What we want is: inst_a inst_b %2 = ld ... DBG_VALUE %2, "x", ... %3 = ld ... Which is what this patch addresses Differential Revision: https://reviews.llvm.org/D145168
-
MalavikaSamak authored
When macros get expanded, the source location for the expanded code received by the Fixable gadgets is invalid. We do not want to emit fixits for macro expanded code and it currently crashes the analysis. This patch fixes the assertion violations that were introduced for handling code with such invalid locations. Reviewed by: NoQ, ziqingluo-90, jkorous Differential revision: https://reviews.llvm.org/D146450
-
Siva Chandra Reddy authored
A convenience wrapper name `add_libc_test` is also added which adds both a unit test and a hermetic test. The ctype tests have been switched over to use add_libc_test. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D148756
-
Siva Chandra Reddy authored
Previously, only those unit tests which belonged to a suite were run as part of libc-unit-tests. It meant that unit tests not part of any suite were not being tested. This change makes all unit tests run as part of libc-unit-tests. The convenience function to add a libc unit test suite has been removed and add_custom_target is used in its place. One of the bit-rotting test has along been fixed. Math exhaustive and differential tests are skipped under full build. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D148784
-
Pavel Kopyl authored
Minimum alignment of 4 for byval arguments was forced to workaround a bug in old versions of ptxas. Details: https://reviews.llvm.org/D22428. Recent ptxas versions (> 9.0) do not seem to have this bug, so alignment requirement was relaxed. To force again minimum alignment of 4, use '-force-min-byval-param-align' option.
-
Mehdi Amini authored
-
Emilio Cota authored
-
Siva Chandra Reddy authored
string.h includes stdlib.h to get free and realloc. This change adds the missing dep on stdlib.h. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D149075
-
Manna, Soumi authored
Reported by Coverity: AUTO_CAUSES_COPY Unnecessary object copies can affect performance. 1. Inside "ExtractAPIVisitor.h" file, in clang::extractapi::impl::ExtractAPIVisitorBase<<unnamed>::BatchExtractAPIVisitor>::VisitFunctionDecl(clang::FunctionDecl const *): Using the auto keyword without an & causes the copy of an object of type DynTypedNode. 2. Inside "NeonEmitter.cpp" file, in <unnamed>::Intrinsic::Intrinsic(llvm::Record *, llvm::StringRef, llvm::StringRef, <unnamed>::TypeSpec, <unnamed>::TypeSpec, <unnamed>::ClassKind, llvm::ListInit *, <unnamed>::NeonEmitter &, llvm::StringRef, llvm::StringRef, bool, bool): Using the auto keyword without an & causes the copy of an object of type Type. 3. Inside "MicrosoftCXXABI.cpp" file, in <unnamed>::MSRTTIBuilder::getClassHierarchyDescriptor(): Using the auto keyword without an & causes the copy of an object of type MSRTTIClass. 4. Inside "CGGPUBuiltin.cpp" file, in clang::CodeGen::CodeGenFunction::EmitAMDGPUDevicePrintfCallExpr(clang::CallExpr const *): Using the auto keyword without an & causes the copy of an object of type CallArg. 5. Inside "SemaDeclAttr.cpp" file, in threadSafetyCheckIsSmartPointer(clang::Sema &, clang::RecordType const *): Using the auto keyword without an & causes the copy of an object of type CXXBaseSpecifier. 6. Inside "ComputeDependence.cpp" file, in clang::computeDependence(clang::DesignatedInitExpr *): Using the auto keyword without an & causes the copy of an object of type Designator. 7. Inside "Format.cpp" file, In clang::format::affectsRange(llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int): Using the auto keyword without an & causes the copy of an object of type Range. Reviewed By: tahonermann Differential Revision: https://reviews.llvm.org/D149074
-
Mehdi Amini authored
-
Mehdi Amini authored
Fix some reviews comments missed when pushing the initial version of the doc.
-
Mehdi Amini authored
Remove deprecated `preloadDialectInContext` flag for MlirOptMain that has been deprecated for 2 years See https://discourse.llvm.org/t/psa-preloaddialectincontext-has-been-deprecated-for-1y-and-will-be-removed/68992 Differential Revision: https://reviews.llvm.org/D149039
-
Mehdi Amini authored
See: https://discourse.llvm.org/t/psa-migrating-mlir-opt-like-tools-to-use-mliroptmainconfig/68991 Differential Revision: https://reviews.llvm.org/D149038
-
Mehdi Amini authored
This makes it reusable across various tooling and reduces the amount of boilerplate needed. Differential Revision: https://reviews.llvm.org/D144818
-