- Oct 20, 2020
-
-
Tres Popp authored
This still satisfies the constraints required by the affine dialect and gives more flexibility in what iteration bounds can be used when loewring to the GPU dialect. Differential Revision: https://reviews.llvm.org/D89782
-
Georgii Rymar authored
[yaml2obj][NFCI] - Address post commit comments for "[yaml2obj][ELF] - Simplify the code that performs sections validation." This addresses post commit comments for D89463.
-
Kirill Bobyrev authored
Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D89771
-
David Carlier authored
- Fixing VS compiler and other cases settings this time. Reviewers: dmajor, hans Reviewed By: hans Differential Revision: https://reviews.llvm.org/D89759
-
Alex Richardson authored
This allows building the clang-format unit tests in only 657 ninja steps rather than 1257 which allows for much faster incremental builds after a git pull. Reviewed By: MyDeveloperDay Differential Revision: https://reviews.llvm.org/D89709
-
Alex Richardson authored
This allows removing the clangAST dependency from libclangToolingCore and therefore allows clang-format to be built without depending on clangAST. Before 1166 files had to be compiled for clang-format, now only 796. Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D89708
-
Benjamin Kramer authored
-
Jason Molenda authored
Add a nul byte to the stream in CommunicationKDP::CheckForPacket before we send the GetData() to a Log::Printf as a c-str. Avoids a crash when logging kdp communications and memory layout isn't in your favor.
-
Georgii Rymar authored
This: 1) Changes the return type of `MappingTraits<T>>::validate` to `std::string` instead of `StringRef`. It allows to create more complex error messages. 2) It introduces std::vector<std::pair<StringRef, bool>> getEntries(): a new virtual method of Section, which is the base class for all sections. It returns names of special section specific keys (e.g. "Entries") and flags that says if them exist in a YAML. The code in validate() uses this list of entries descriptions to generalize validation. This approach was discussed in the D89039 thread. Differential revision: https://reviews.llvm.org/D89463
-
Carl Ritson authored
Remove duplicate code and move things around to make it easier to add additional optimisations to the pass. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D89619
-
Ulrich Weigand authored
The "Size" value returned by SystemZDisassembler::getInstruction is used by common code even in the case where the routine returns failure. If that Size value exceeds the number of bytes remaining in the section, that could cause disassembler crashes. Fixed by never returning more than the number of bytes remaining.
-
Evgeny Leviant authored
Differential revision: https://reviews.llvm.org/D89460
-
David Green authored
This reverts commit 38f625d0. This commit contains some holes in its logic and has been causing issues since it was commited. The idea sounds OK but some cases were not handled correctly. Instead of trying to fix that up later it is probably simpler to revert it and work to reimplement it in a more reliable way.
-
Alex Zinenko authored
The Value hierarchy consists of BlockArgument and OpResult, both of which derive Value. Introduce IsA functions and functions specific to each class, similarly to other class hierarchies. Also, introduce functions for pointer-comparison of Block and Operation that are necessary for testing and are generally useful. Reviewed By: stellaraccident, mehdi_amini Differential Revision: https://reviews.llvm.org/D89714
-
Atmn Patel authored
This adds the LLVM IR attribute `mustprogress` as defined in LangRef through D86233. This attribute will be applied to functions with in languages like C++ where forward progress is guaranteed. Functions without this attribute are not required to make progress. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D85393
-
Richard Smith authored
This fixes miscomputation of __builtin_constant_evaluated in the initializer of a variable that's not usable in constant expressions, but is readable when constant-folding. If evaluation of a constant initializer fails, we throw away the evaluated result instead of keeping it as a non-constant-initializer value for the variable, because it might not be a correct value. To avoid regressions for initializers that are foldable but not formally constant initializers, we now try constant-evaluating some globals in C++ twice: once to check for a constant initializer (in an mode where is_constannt_evaluated returns true) and again to determine the runtime value if the initializer is not a constant initializer.
-
Igor Kudrin authored
This is a follow-up for D62935 where the corresponding API methods were removed. Differential Revision: https://reviews.llvm.org/D89472
-
Fangrui Song authored
* Make cc1 and cc1as --compress-debug-sections an alias for --compress-debug-sections=zlib * Make -gz an alias for -gz=zlib The new behavior is consistent with GCC when binutils>=2.26 is detected: -gz is translated to --compress-debug-sections=zlib instead of --compress-debug-sections.
-
Vitaly Buka authored
Fixes https://bugs.llvm.org/show_bug.cgi?id=47896
-
Artur Pilipenko authored
Adding myself as a new Azul representative to security group. Differential Revision: https://reviews.llvm.org/D89287
-
Stella Laurenzo authored
* Interops with Python buffers/numpy arrays to create. * Also cleans up 'get' factory methods on some types to be consistent. * Adds mlirAttributeGetType() to C-API to facilitate error handling and other uses. * Punts on a lot of features of the ElementsAttribute hierarchy for now. * Does not yet support bool or string attributes. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D89363
-
Fangrui Song authored
No need to use -femit-coverage-notes and -femit-coverage-data.
-
Luqman Aden authored
Create the LLVM / CodeView register mappings for the 32-bit ARM Window targets. Reviewed By: compnerd Differential Revision: https://reviews.llvm.org/D89622
-
Arthur Eubanks authored
-
Jonas Devlieghere authored
Make it possible to specify a list of utilities that should be installed in the toolchain. Differential revision: https://reviews.llvm.org/D89762
-
Fangrui Song authored
The name is unfortunate because it is similar to the driver option -ftest-coverage. It turns out aside from one occurrence in a test, this option is not used.
-
Jonas Devlieghere authored
For the reproducers in LLDB we want to switch to an "immediate mode" FileCollector that writes every file encountered straight to disk so we can generate the actual mapping out-of-process. This patch moves the interface into a separate base class. Differential revision: https://reviews.llvm.org/D89742
-
Max Kazantsev authored
Fixed wrapping range case & proof methods reduced to constant range checks to save compile time. Differential Revision: https://reviews.llvm.org/D89381
-
Richard Smith authored
Instead of framing the interface around whether the variable is an ICE (which is only interesting in C++98), primarily track whether the initializer is a constant initializer (which is interesting in all C++ language modes). No functionality change intended.
-
Arthur Eubanks authored
Tests already have corresponding NPM RUN lines.
-
Kai Luo authored
-
Serguei Katkov authored
IRCE has some overhead for runtime checks and in case number of iteration is small the overhead can kill the benefit from optimizations. This CL bases on BlockFrequencyInfo of pre-header and header to estimate the number of loop iterations. If it is less than irce-min-estimated-iters we do not transform the loop. Probably it is better to make more complex cost model but for simplicity it seems the be enough. The usage of BFI is added only for new pass manager and tries to use it efficiently. Reviewers: ebrevnov, dantrushin, asbirlea, mkazantsev Reviewed By: mkazantsev Subscribers: llvm-commits, fhahn Differential Revision: https://reviews.llvm.org/D89541
-
Geoffrey Martin-Noble authored
Without this I get a warning about not all paths returning. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D89760
-
Richard Smith authored
-
Lang Hames authored
Thanks for spotting this Mehdi!
-
Qiu Chaofan authored
From LangRef, FMF contract should not enable reassociating to form arbitrary contractions. So it should not help rearrange nodes like (fma (fmul x, c1), c2, y) into (fma x, c1*c2, y). Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D89527
-
Richard Smith authored
for which it matters. This is a step towards separating checking for a constant initializer (in which std::is_constant_evaluated returns true) and any other evaluation of a variable initializer (in which it returns false).
-
Volodymyr Sapsai authored
This reverts commit 4000c9ee. Test "LLVM :: Other/statistic.ll" is failing on Windows.
-
Wang, Pengfei authored
extract_vector_elt will turn type vxi1 into i8, which triggers the assertion fail. Since we don't really handle vxi1 cases in below code, we can just return from here. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D89096
-
Douglas Yung authored
Recently commit D78699 (commit 26cfb6e5), fixed clang's behavior with respect to passing a union type through a register to correctly follow the ABI. However, this is an ABI breaking change with earlier versions of the clang compiler, so we should add an -fclang-abi-compat option to address this. Additionally, the PS4 ABI requires the older behavior, so that is added as well. This change adds a Ver11 value to the ClangABI enum that when it is set (or the target is the PS4 triple), we skip the ABI fix introduced in D78699. Differential Revision: https://reviews.llvm.org/D89747
-