- Dec 05, 2022
-
-
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
-
LLVM GN Syncbot authored
-
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
-
Jonas Paulsson authored
This reverts commit 17db0de3. Some more bots got broken - need to investigate.
-
Peter Klausler authored
Enforce detectable compilation-time violations of restrictions on the arguments to the TRANSFER() intrinsic function (16.9.163) with error messages, and mark other potential problems with warnings. Differential Revision: https://reviews.llvm.org/D139157
-
Fangrui Song authored
D130887 uses a dummy empty section `sanmd_covered` (with the SHF_GNU_RETAIN flag on ELF) to prevent `undefined symbol: __start_sanmd_covered` if all `sanmd_covered` are discarded by `ld --gc-sections` (in `-z start-stop-gc` mode). The dummy `sanmd_covered` does not have the SHF_LINK_ORDER flag, so mixing it with SHF_LINK_ORDER `sanmd_covered` causes an issue to GNU ld<2.36 (https://sourceware.org/bugzilla/show_bug.cgi?id=26256). Similar to D98903 for SanitizerCoverage, let's make encapsulation symbols undefined weak[1]. This additionally avoids size cost due to the dummy section and symbol. [1]: https://maskray.me/blog/2021-01-31-metadata-sections-comdat-and-shf-link-order Reviewed By: melver Differential Revision: https://reviews.llvm.org/D139276
-
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
-
Florian Hahn authored
This patch extends VP-based sinking to also sink VPScalarStepsRecipe. This takes us a step closer towards retiring the IR based sinking. The main change is extending VPScalarIVStepsRecipe::execute to support executing in a replicate-region. Depends on D133758. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D133760
-
Fangrui Song authored
The updated functions are mostly internal with a few exceptions (virtual functions in TargetInstrInfo.h, TargetRegisterInfo.h). To minimize changes to LLVMCodeGen, GlobalISel files are skipped. https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
I've verified that every single instance of std::nullopt 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 single instance of std::nullopt 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
-
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.
-