- Dec 05, 2022
-
-
Kazu Hirata authored
I've verified that every change in this patch affects generated files and would reduce the number of warnings if None were deprecated. 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
-
Kazu Hirata authored
I've verified that every change in this patch affects generated files and would reduce the number of warnings if None were deprecated. 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
-
Kazu Hirata authored
I've verified that every change in this patch affects generated files and would reduce the number of warnings if None were deprecated. 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
-
Kazu Hirata authored
I've verified that every change in this patch affects generated files and would reduce the number of warnings if None were deprecated. 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
-
Fangrui Song authored
-
Peter Klausler authored
The semantics of many transformational intrinsic functions, especially reductions like SUM(), are determined by the static presence or absence of a DIM= argument. In the case of an actual DIM= argument that is syntactically present but could be dynamically absent at execution time (due to being OPTIONAL, POINTER, or ALLOCATABLE), f18 should emit some kind of diagnostic message. Other compilers either ignore this possibility or treat it as a hard error; neither really seems correct, so let's do something more nuanced. For cases where the dynamic absence of a value for DIM doesn't pose as much of a risk because it lowering is going to assume that it's equal to 1 anyway, emit only a portability warning. For other cases where the generated code or runtime support library will need the value of DIM= during execution, emit a warning that the use of an OPTIONAL/POINTER/ALLOCATABLE variable or component here is dicey and should be reconsidered. While here, also catch bad constant DIM= values. Differential Revision: https://reviews.llvm.org/D139155
-
Fangrui Song authored
-
Krzysztof Parzyszek authored
-
Owen Pan authored
This includes TT_MacroBlockBegin and TT_MacroBlockEnd as well. We can no longer use MatchingParen of FormatToken as an indicator to mark optional braces. Instead, we directly set Optional of an l_brace first and reset it later if it turns out that the braces are not optional. Also added a test case for deeply nested loops. Differential Revision: https://reviews.llvm.org/D139257
-
Fangrui Song authored
-
Benjamin Kramer authored
clang\lib\Serialization\GlobalModuleIndex.cpp(818): error C2440: 'initializing': cannot convert from 'const ValueTy' to '_Ty2 &&' with [ ValueTy=llvm::SmallVector<unsigned int,2> ] and [ _Ty2=llvm::SmallVector<unsigned int,2> ] -
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Peter Klausler authored
An assumed-size dummy array argument with INTENT(OUT) can't have a type that might require any runtime (re)initialization, since the size of the array is not known. Differential Revision: https://reviews.llvm.org/D139149
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Krzysztof Parzyszek authored
-
Benjamin Kramer authored
-
Benjamin Kramer authored
const references only for now, we can add overloads to have a mutable or movable `second` if the need arises.
-
- Dec 04, 2022
-
-
Benjamin Kramer authored
Use the uniform structured bindings interface where possible. NFCI.
-
Krzysztof Parzyszek authored
-
Benjamin Kramer authored
Apart from simplifying code, this has the advantage of making the interface between std::pair and PointerIntPair more uniform.
-
John McIver authored
* Add end-of-line check to load instructions
-
John McIver authored
* Add check to unnamed portion of nontemporal attribute * Add end-of-line check to load instructions
-
Florian Hahn authored
The recipe only computes the inductions steps using its operands. It does neither read nor write memory. Split of from D133760.
-
Florian Hahn authored
-
Kevin Sala authored
This patch prepares the PluginInterface for the new AMDGPU NextGen plugin. Differential Revision: https://reviews.llvm.org/D139263
-
Florian Hahn authored
This makes the test more robust with respect to value numbering which will change with future changes.
-
Kai Sasaki authored
Support affine.parallel in the index set analysis. It allows us to do dependence analysis containing affine.parallel in addition to affine.for and affine.if. This change only supports the constant lower/upper bound in affine.parallel. Other complicated affine map bounds will be supported in further commits. See https://github.com/llvm/llvm-project/issues/57327 Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D136056
-
Tomas Matheson authored
This reverts commit 6272f87b.
-
Alexey Lapshin authored
Currently, DWARFLinker receives kind of accel tables as predefined sets: ``` Apple, ///< .apple_names, .apple_namespaces, .apple_types, .apple_objc. Dwarf, ///< DWARF v5 .debug_names. Default, ///< Dwarf for DWARF5 or later, Apple otherwise. Pub, ///< .debug_pubnames, .debug_pubtypes ``` This patch removes implicit sets of tables(Default, Dwarf) and allows to ask for several sets: ``` Apple, ///< .apple_names, .apple_namespaces, .apple_types, .apple_objc. Pub, ///< .debug_pubnames, .debug_pubtypes DebugNames ///< .debug_names. ``` It allows seamlessness adding more accel tables in the future: .gdb_index, .debug_cu_index... Doing things that way, DWARFLinker will be independent of consumers' requirements. f.e. dsymutil and llvm-dwarfutil may have different variants for Default set (so, instead of implementing these differencies inside DWARFLinker it could be implemented in the corresponding module). Differential Revision: https://reviews.llvm.org/D132371
-
Fangrui Song authored
-
serge-sans-paille authored
Fix #59321
-
Kazu Hirata authored
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. 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
-
Kazu Hirata authored
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. 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
-
Kazu Hirata authored
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. 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
-
Kazu Hirata authored
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. 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
-