- Jun 24, 2022
-
-
Stephen Long authored
MSVC's pragma optimize turns optimizations on or off based on the list passed. At the moment, we only support an empty optimization list. i.e. `#pragma optimize("", on | off)` From MSVC's docs: | Parameter | Type of optimization | |-----------|--------------------------------------------------| | g | Enable global optimizations. Deprecated | | s or t | Specify short or fast sequences of machine code | | y | Generate frame pointers on the program stack | https://docs.microsoft.com/en-us/cpp/preprocessor/optimize?view=msvc-170 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D125723 -
Tapasweni Pathak authored
This patch implements soft reset and adds tests for soft reset success of the diagnostics engine. This allows us to recover from errors in clang-repl without resetting the pragma handlers' state. Differential revision: https://reviews.llvm.org/D126183
-
Sam Estep authored
Reland of D128467. This version replaces `return {};` with `return Result();`, since the former failed on GCC with `Result = void`. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D128533 -
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D128534
-
Dawid Jurczak authored
Differential Revision: https://reviews.llvm.org/D127597
-
serge-sans-paille authored
Some code [0] consider that trailing arrays are flexible, whatever their size. Support for these legacy code has been introduced in f8f63249 but it prevents evaluation of __builtin_object_size and __builtin_dynamic_object_size in some legit cases. Introduce -fstrict-flex-arrays=<n> to have stricter conformance when it is desirable. n = 0: current behavior, any trailing array member is a flexible array. The default. n = 1: any trailing array member of undefined, 0 or 1 size is a flexible array member n = 2: any trailing array member of undefined or 0 size is a flexible array member n = 3: any trailing array member of undefined size is a flexible array member (strict c99 conformance) Similar patch for gcc discuss here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 [0] https://docs.freebsd.org/en/books/developers-handbook/sockets/#sockets-essential-functions
-
Nikita Popov authored
Drop the requirement that getInitialValueOfAllocation() must be passed an allocator function, shifting the responsibility for checking that into the function (which it does anyway). The motivation is to avoid some calls to isAllocationFn(), which has somewhat ill-defined semantics (given the number of allocator-related attributes we have floating around...) (For this function, all we eventually need is an allockind of zeroed or uninitialized.) Differential Revision: https://reviews.llvm.org/D127274
-
Nikita Popov authored
-
Joseph Huber authored
Summary: This patch adds some new sanity checks to make sure that the sizes of the offsets are within the bounds of the file or what is expected by the binary. This also improves the error handling of the version structure to be built into the binary itself so we can change it easier.
-
Kai Luo authored
After 30dfe016, we no longer use string as link flags. Patch by @tingwang. Reviewed By: tingwang Differential Revision: https://reviews.llvm.org/D128524
-
Sam Estep authored
This patch adds another `typename` parameter to `MatchSwitch` class: `Result` (defaults to `void`), corresponding to the return type of the function. This necessitates a couple minor changes to the `MatchSwitchBuilder` class, and is tested via a new `ReturnNonVoid` test in `clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp`. Reviewed By: gribozavr2, sgatev, xazax.hun Differential Revision: https://reviews.llvm.org/D128467
-
Haojian Wu authored
after the test-reorg commit (89a1d03e), the cert/uppercase test starts to fail in our internal environment -- it accesses a header file from "../readability", which is not friendly to a hermetic test environment. This change makes the test fully hermetic, and does some cleanup on the uppercase header (I think it is better to move it the share Inputs/Header directory, and rename it) Differential Revision: https://reviews.llvm.org/D128511
-
Matthias Springer authored
Only the analysis part of the interface is implemented. The bufferization itself is performed by the SparseTensorConversion pass. Differential Revision: https://reviews.llvm.org/D128138
-
LLVM GN Syncbot authored
-
Aaron Ballman authored
This reverts commit 6546fdbe. This broke some build bots due to a layering issue: https://lab.llvm.org/buildbot/#/builders/57/builds/19244
-
LLVM GN Syncbot authored
-
Vaibhav Yenamandra authored
Create an interface for writing SARIF documents from within clang: The primary intent of this change is to introduce the interface clang::SarifDocumentWriter, which allows incrementally adding diagnostic data to a JSON backed document. The proposed interface is not yet connected to the compiler internals, which will be covered in future work. As such this change will not change the input/output interface of clang. This change also introduces the clang::FullSourceRange type that is modeled after clang::SourceRange + clang::FullSourceLoc, this is useful for packaging a pair of clang::SourceLocation objects with their corresponding SourceManagers. Previous discussions: RFC for this change: https://lists.llvm.org/pipermail/cfe-dev/2021-March/067907.html https://lists.llvm.org/pipermail/cfe-dev/2021-July/068480.html SARIF Standard (2.1.0): https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html Differential Revision: https://reviews.llvm.org/D109701
-
Nikita Popov authored
Rename CanDeriveViaCapture -> RequiresNoCaptureBefore, drop unnecessary const cast, reformat some code avoid an ugly super-indented comment.
-
Nabeel Omer authored
Patch was reverted in 4c5f10ae due to buildbot failures, now being reapplied with updated AArch64 and RISCV tests. This patch adds handling for the llvm.powi.* intrinsics in BasicTTIImplBase::getIntrinsicInstrCost() and improves vectorization. Closes #53887. Differential Revision: https://reviews.llvm.org/D128172
-
Muhammad Omair Javaid authored
test_unsigned_char test in TestExprsChar.py fails on AArch64/Windows platform. There is known bug already present for the failure for various arch/os combinations. This patch marks the test as xfail for windows/AArch64.
-
Nikita Popov authored
Export API that was previously private to BasicAliasAnalysis and will be used in D127202.
-
Frederic Cambus authored
Similar to D110763.
-
David Green authored
Given a vector add or sub from extends that needs more that one 'step' (i.e i8 to i32 or i16 to i64), we can transform the sequence to sext(add(ext, ext)), to allow the add(ext, ext) to become a single uaddl and a larger extend, producing less instructions in total. https://alive2.llvm.org/ce/z/S2T4k- Differential Revision: https://reviews.llvm.org/D128426
-
Nikita Popov authored
isEscapeSource() currently considers all call return values as escape sources. However, CaptureTracking can look through certain calls, so we shouldn't consider these as escape sources either. The corresponding CaptureTracking code is: https://github.com/llvm/llvm-project/blob/7c9a3825b8420f5d37c5bb8919a9e46684a87089/llvm/lib/Analysis/CaptureTracking.cpp#L332-L333 Differential Revision: https://reviews.llvm.org/D128444
-
Kiran Chandramohan authored
Fortran dummy procedures and procedure pointer can be OPTIONAL, and there is no technical reason to prevent fir.is_present and fir.absent from accepting function types, so allow it and add test. Note: This is part of upstreaming from the fir-dev branch of https://github.com/flang-compiler/f18-llvm-project. This patch is basically upstreaming the following PR. https://github.com/flang-compiler/f18-llvm-project/pull/1568 Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D128464 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
David Green authored
-
Vassil Vassilev authored
The asan issue was fixed in llvm/llvm-project@7bc00ce5cd41 This reverts commit 575e297f. Differential revision: https://reviews.llvm.org/D123674
-
Petr Hosek authored
This reverts commit c0d4f228 which broke clang-x86_64-debian-fast: https://lab.llvm.org/buildbot/#/builders/109/builds/41268
-
Siva Chandra Reddy authored
This enables setting up a single "self" thread object to be returned by API like thrd_self and pthread_self.
-
Cullen Rhodes authored
-
Florian Hahn authored
This allows VPlanTransforms to query the VFs included in the plan in the future.
-
Petr Hosek authored
We no longer support the use of LLVM_ENABLE_PROJECTS for libcxx and libcxxabi. We don't use paths to libcxx and libcxxabi in compiler-rt. Differential Revision: https://reviews.llvm.org/D126905
-
Matt Devereau authored
-
Fangrui Song authored
-
Peixin-Qiao authored
This supports the lowering of copyin clause initially. The pointer, allocatable, common block, polymorphic varaibles will be supported later. This also includes the following changes: 1. Resolve the COPYIN clause and make the entity as host associated. 2. Fix collectSymbolSet by adding one option to control collecting the symbol itself or ultimate symbol of it so that it can be used explicitly differentiate the host and associated variables in host-association. 3. Add one helper function `lookupOneLevelUpSymbol` to differentiate the usage of host and associated variables explicitly. The previous lowering of firstprivate depends on the order of `createHostAssociateVarClone` and `lookupSymbol` of host symbol. With this fix, this dependence is removed. 4. Reuse `copyHostAssociateVar` for copying operation of COPYIN clause. Reviewed By: kiranchandramohan, NimishMishra Differential Revision: https://reviews.llvm.org/D127468
-
Florian Hahn authored
This reverts commit 94ed2caf. The issue with no-determinism with the test has been fixed in d9526e8a.
-
Valentin Clement authored
PURE keyword should be kept in `__fortran_ieee_exceptions.f90` and `ieee_arithmetic.f90` and not removed as done in https://reviews.llvm.org/D128431 Reviewed By: vdonaldson Differential Revision: https://reviews.llvm.org/D128498
-
Valentin Clement authored
When there is a substring operation on a scalar assignment in a FORALL context, we have to lower the entire substring and not the entire CHARACTER variable. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld, klausler Differential Revision: https://reviews.llvm.org/D128459 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Fangrui Song authored
-