- Dec 18, 2022
-
-
Iain Sandoe authored
For the Itanium ABI, we emit an initializer for each module. This is responsible for handling initialization of global vars. Relates to P1874R1. The initializer has a known mangling and is automatically called from any TU that imports a module. Since, at present, the importer has no way to determine that an imported module does not require an initializer, we generate the initializer for all cases (even when it is empty). Initializers must be run once, with the ordering guaranteed by the import graph and this is ensured in the current code by addition of a guard variable. In the case that a module has no requirement for global initializers, and also does not import any other modules, we can elide the guard variable. Differential Revision: https://reviews.llvm.org/D134589
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Sameer Sahasrabuddhe authored
Previously reverted in 8b446ea2 Reapplying because this commit is NOT DEPENDENT on the reverted commit fc21f2d7, which broke the ASAN buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information. The arguments to a PHI may represent a recurrence by eventually using the output of the PHI itself. This is now handled by checking for cycles in the control flow. If a PHI is not in a recurrence, it is now able to report multiple offsets instead of conservatively reporting unknown. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138991
-
Vy Nguyen authored
This reverts commit 09c5aab7. New changes: Temporarily skip checking the output bundle's cpu/cpu-subtype Suspected there's a bug in selecting targets which caused the produced bundle to be arm64 bundle (even though it was specifically linked with -arch x86_64). The current test that link succeeded should be sufficient, because it would have failed with "unable to find matching tagets" prior to this patch. Differential Revision: https://reviews.llvm.org/D139572
-
River Riddle authored
Avoids parsing other types of attributes when checking if there is a SymbolRefAttr.
-
Johannes Doerfert authored
Before we might have missed calling the destructor on an abstract attribute if it was created outside the seeding or update phase. All AAs are now in the AAMap and we can use it to delete them all.
-
Dinar Temirbulatov authored
This allows it to fold WHILEop with constant operand to PTRUE instruction in the case given range is fitted to predicate format. Also, this change fixes the unsigned overflow error introduced in D137547 for WHILELO lowering. Differential Revision: https://reviews.llvm.org/D139068
-
Peter Klausler authored
In an error recovery situation, the name resolution code for a SELECT TYPE statement must check the presence of an optional expression before calling GetType() upon it. Differential Revision: https://reviews.llvm.org/D140153
-
Roman Lebedev authored
`benchmarkMain()` is already bigger than it should be, let's extract the important chunk before making it even larger.
-
Roman Lebedev authored
[NFC][llvm-exegesis] `BenchmarkRunner`: split `runConfiguration()` into `getRunnableConfiguration()` + `runConfiguration()` We can run as many `getRunnableConfiguration()` in parallel as we want, but `runConfiguration()` must be run *completely* standalone from everything. This is a step towards enabling threading.
-
Roman Lebedev authored
We don't ever legitimately need to copy it, so let's make that explicit
-
Fangrui Song authored
Removing .c_str() has a semantics difference, but the use scenarios likely do not matter as we don't have NUL in the strings.
-
Roman Lebedev authored
I'm absolutely flabbergasted by this. I was absolutely sure this worked. But apparently not. When outputting to the file, we'd write a single `InstructionBenchmark` to it, and then close the file. And for the next `InstructionBenchmark`, we'd reopen the file, truncating it in process, and thus the first `InstructionBenchmark` would be gone...
-
Gregory Alfonso authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139485
-
Khem Raj authored
Pass -D_FILE_OFFSET_BITS=64 to compiler flags on 32bit glibc based systems. This will make sure that 64bit versions of LFS functions are used e.g. seek will behave same as lseek64. Also revert [1] partially because this added a cmake test to detect lseek64 but then forgot to pass the needed macro to actual compile, this test was incomplete too since libc implementations like musl has 64bit off_t by default on 32bit systems and does not bundle[2] -D_LARGEFILE64_SOURCE under -D_GNU_SOURCE like glibc, which means the compile now fails on musl because the cmake check passes but we do not have _LARGEFILE64_SOURCE defined. Using the *64 function was transitional anyways so use -D_FILE_OFFSET_BITS=64 instead [1] https://github.com/llvm/llvm-project/commit/8db7e5e4eed4c4e697dc3164f2c9351d8c3e942b [2] https://git.musl-libc.org/cgit/musl/commit/?id=25e6fee27f4a293728dd15b659170e7b9c7db9bc Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139752
-
Peter Klausler authored
When some arguments that specify bit positions, shift counts, and field sizes are constant at compilation time, but other arguments are not constant, the compiler should still validate the constant ones. In the current sources, validation is only performed for intrinsic references that can be folded to constants. Differential Revision: https://reviews.llvm.org/D140152
-
Krzysztof Parzyszek authored
-
Markus Böck authored
Returning `std::nullopt` from the case of a `TypeSwitch` yields broken results, by either falling through to another case, or falling of the switch entirely and hitting an assertion. This is simply due to the use of `operator=` of what is now `std::optional`, which has an overload specifically for `std::nullopt`, causing the internal optional, used for the `TypeSwitch` result to be reset, instead of a value being constructed from the `std::nullopt`. The fix is to simply use the `emplace` method of `std::optional`, causing a value to always be constructed from the value returned by the case function. Differential Revision: https://reviews.llvm.org/D140265
-
Fangrui Song authored
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716/19 value() is a 15.0.0 API for std::optional migration. std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). Deprecate value() to prevent new in-tree uses which may accidentally cause build breakage for older Xcode when contributors perform std::optional migrating. Some downtream MLIR projects such as tensorflow/mlir-hlo, stablehlo use value(), so we do not remove it now.
-
Fangrui Song authored
prerequisite to deprecate the new API value() whose counterpart in std::optional has undesired exception checking semantics and is unavailable in older Xcode.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Simon Pilgrim authored
These should consistently use the fused domain count, not the unfused domain Confirmed with Agner + uops.info
-
Slava Zakharin authored
Removed unused functions searchFunctionInLibrary and getFuncOp. Differential Revision: https://reviews.llvm.org/D140236
-
Peter Rong authored
Signed-off-by:Peter Rong <PeterRong96@gmail.com>
-
Roman Lebedev authored
The new code uses ModuleInliner, but does not link to the library that provides it.
-
Simon Pilgrim authored
Most BMI ops are 2uop and 0.5 throughput - interestingly TZCNTrm doesn't take an extra uop but the other instructions do Confirmed by AMD SoG + Agner
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Slava Zakharin authored
I kept the possibility to use pgmath in constant folding just in case. We can remove it later, if it is proven to be redundant. Differential Revision: https://reviews.llvm.org/D140236
-
Roman Lebedev authored
-
Roman Lebedev authored
Always assemble into buffer, that is then optionally dumped into file.
-
Roman Lebedev authored
-
Roman Lebedev authored
If `BenchmarkRunner::runConfiguration()` deals with more than a single repetitor, tasking will be less straight-forward to implement. But i think dealing with that in it's callee is even more readable.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Peter Klausler authored
When specific procedures of a generic have dummy procedures, underspecified actual procedures can match more than one specific procedure. This can happen with actual procedures that are externals with implicit interfaces, including the completely unspecified case of a PROCEDURE() or EXTERNAL that doesn't even differentiate between a subroutine and a function. Generic resolution can already handle cases of ambiguous resolution due to the use of NULL() actual arguments with no MOLD= arguments to define their types. Extend the handling of ambiguous actual arguments to include the case of underspecified actual procedures. Differential Revision: https://reviews.llvm.org/D140151
-
Peter Klausler authored
Check for things that are not allowed to bear the PROTECTED attribute. Differential Revision: https://reviews.llvm.org/D140150
-
Peter Klausler authored
The pointers and allocatables that appear in ALLOCATE and DEALLOCATE statements need to be subject to the general definability checks so that problems with e.g. PROTECTED objects can be caught. (Also: regularize the capitalization of the DEALLOCATE error messages while I'm in here so that they're consistent with the messages that can come out for ALLOCATE.) Differential Revision: https://reviews.llvm.org/D140149
-