- Feb 02, 2023
-
-
Mircea Trofin authored
Unblocking the build. Investigating why the value can't be initialized (even to e.g. -1) before calling open.
-
Xiang Li authored
New option --dxv-path is added for dxc mode to set the installation path for dxv. If cannot find dxv, a warning will be report. dxv will be executed with command line dxv file_name -o file_name. It will validate and sign the file and overwrite it. Differential Revision: https://reviews.llvm.org/D141705
-
Nikolas Klauser authored
Having an ODR violation with `__exception_guard` seems to be problematic in LTO builds. To avoid the ODR violation, give the class different names for exception/no-exceptions mode and have an alias to the correct class. Reviewed By: ldionne, #libc, alexfh Spies: aeubanks, dblaikie, joanahalili, alexfh, rupprecht, libcxx-commits Differential Revision: https://reviews.llvm.org/D143071
-
Chris Bieneman authored
DirectX shader pipeline state validation information is a fairly complicated to serialize data structure. This patch adds the first bit of support for reading and writing the runtime info structure which comes first in the encoded data. Subsequent patches will flesh out the remaining fields of the data structure. There is no official documentation for the format, but the format is roughly documented in the code comment here: https://github.com/microsoft/DirectXShaderCompiler/blob/main/include/dxc /DxilContainer/DxilPipelineStateValidation.h#L731 Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D141649
-
Jim Ingham authored
-
Lang Hames authored
Adds a getJITSymbolFlagsForSymbol function that returns the JITSymbolFlags for a given jitlink::Symbol, and replaces severalredundant copies of that mapping with calls to the new function. This fixes a bug in LinkGraphMaterializationUnit::scanLinkGraph where we were failing to set the JITSymbolFlags::Weak flag for weak symbols, and a bug in ObjectLinkingLayer::claimOrExternalizeWeakAndCommonSymbols where we were failing to set the JITSymbolFlags::Callable flag for callable symbols.
-
Kirill Stoimenov authored
For HWASAN this would be the tagged address. It is the same pointer when pointer tagging is not used. Coincidently this also fixes some test which rely on comparing pointers. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D143121
-
Shivam Gupta authored
This reverts commit 95668c0d. This discovers a warning in https://reviews.llvm.org/rGa68d4b11465f5b3326be1dd820f59fac275b7581. and broke the x86_64-linux sanitizer buildbot: https://lab.llvm.org/buildbot/#/builders/37/builds/19910.
-
Petr Hosek authored
We have made relative vtable the default for Fuchsia C++ ABI so this is no longer needed. Differential Revision: https://reviews.llvm.org/D143050
-
Mircea Trofin authored
-
Craig Topper authored
Instead of manually listing 16 different even numbers, use a range and then multiply.
-
Mircea Trofin authored
Turns out raw_fd_stream doesn't work with named pipes, so we just need to lower the abstraction. Updated the unittest accordingly. Because mkfifo's path argument requires a certain naming pattern on Windows (IIUC), restricted the test to Linux only. Differential Revision: https://reviews.llvm.org/D143110
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D143114
-
Michael Spencer authored
The -arcmt-action= and -objcmt-migrate* actions were being passed to module builds. This caused these builds to fail, as they are secondary actions that suppress emitting modules. Differential Revision: https://reviews.llvm.org/D143040
-
Mitch Phillips authored
Same as b3b940d1
-
Mitch Phillips authored
Popped up after https://reviews.llvm.org/D142826 added extra flags to -Wextra, which is used by our sanitizer buildbots (https://lab.llvm.org/buildbot/#/builders/37/builds/19910). This check seems unnecessary, it's a bad cargo-cult after the buffer size was expanded to allow >= 4GiB after https://reviews.llvm.org/rGd6c15b661ab0aabb00f1219ce4af7136938e67e2.
-
V Donaldson authored
Lowering code currently allows for directives inside a program or subprogram, or outside any program unit. Directives may also appear in the specification part of a module, as in: module mm interface subroutine ss(aa) !dir$ ignore_tkr(tkr) aa integer :: aa(*) end subroutine ss end interface end module With some exceptions such as OpenMP directives, most directives are currently ignored, so this code should generate an "ignoring all compiler directives" message. -
Guozhi Wei authored
This reverts commit 5f1448fe.
-
Guozhi Wei authored
This reverts commit f494b366.
-
Peter Klausler authored
In the parse tree visitation framework (Parser/parse-tree-visitor.h) and in the semantic analyzer for expressions (Semantics/expression.cpp) avoid crashing due to stack size limitations by using an iterative traversal algorithm rather than straightforward recursive tree walking. The iterative approach is the obvious one of building a work queue and using it to (in the case of the parse tree visitor) call the visitor object's Pre() and Post() routines on subexpressions in the same order as they would have been called during a recursive traversal. This change helps the compiler survive some artificial stress tests and perhaps with future exposure to machine-generated source code. Differential Revision: https://reviews.llvm.org/D142771
-
Peter Klausler authored
It's basically impossible to write a switch statement with a case for every enumerator in an enum class if the cases each have a return statement and get it to compile without warnings for all of our build compilers & versions. Rewrite as a sequence of if statements.
-
Nikolas Klauser authored
This allows compiling the clang-tidy checks when you only have ToT clang Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D142973
-
Kazu Hirata authored
This patch fixes: flang/lib/Evaluate/check-expression.cpp:509:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
-
Erik Desjardins authored
I am working on another patch that changes StringMap's hash function, which changes the iteration order here, and breaks some tests, specifically: clang/test/Analysis/NSString.m clang/test/Analysis/shallow-mode.m with errors like: generated arguments do not match in round-trip generated arguments #1 in round-trip: <...> "-analyzer-config" "ipa=inlining" "-analyzer-config" "max-nodes=75000" <...> generated arguments #2 in round-trip: <...> "-analyzer-config" "max-nodes=75000" "-analyzer-config" "ipa=inlining" <...> To avoid this, sort the options by key, instead of using the default map iteration order. Reviewed By: jansvoboda11, MaskRay Differential Revision: https://reviews.llvm.org/D142861 -
Craig Topper authored
-
Jan Svoboda authored
When scanning dependencies of a module, the command line we're given doesn't have an input file, which the driver needs to be happy. We've been creating a fake in-memory input file named after the module. However, this can hide files/directories on the actual filesystem, leading to errors. This patch works around that issue by generating a unique file name, which won't collide with the actual file system. We could also change the driver APIs so that we're able to specify an "assumed" input file. This would be more work, though, since the driver assumes the input name comes from the actual command-line. Depends on D140176. Reviewed By: artemcm Differential Revision: https://reviews.llvm.org/D140177
-
Jan Svoboda authored
For users of the C++ API, the return type of `getFullDependencies` doesn't make sense when asking for dependencies of a module. In the returned `FullDependenciesResult` instance, only `DiscoveredModules` is useful (the graph of modular dependecies). The `FullDeps` member is trying to describe a translation unit it was never given. Its command line also refers to a file in the in-memory VFS we create in the scanner, leaking the implementation detail. This patch splits the API and improves layering and naming of the return types. Depends on D140175. Reviewed By: artemcm Differential Revision: https://reviews.llvm.org/D140176
-
Jan Svoboda authored
This API is no longer necessary, so let's remove it to simplify the internal APIs. Reviewed By: benlangmuir, artemcm Differential Revision: https://reviews.llvm.org/D140175
-
Peter Klausler authored
Global names should be checked for conflicts even when not BIND(C). Differential Revision: https://reviews.llvm.org/D142761
-
Owen Pan authored
Closes #60264. Differential Revision: https://reviews.llvm.org/D142804
-
Amir Ayupov authored
The dependence is needed since Utils includes VCSRevision.h, and other LLVM components that include this header also have the llvm_vcsrevision_h dependency. Fixes #60460. Reviewed By: #bolt, ayermolo Differential Revision: https://reviews.llvm.org/D143101
-
Tue Ly authored
See https://github.com/llvm/llvm-project/issues/59866 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D143098
-
Peter Klausler authored
When a descriptor inquiry or inquiry function's result is not constant and is known to be impossible to correctly determine at runtime, raise an error. For example, LEN(X) when X is a local allocatable variable with deferred length. Differential Revision: https://reviews.llvm.org/D142759
-
Lei Zhang authored
For the cases where we have aliases of `vector<4xf16>` and `vector<4xf32>`, we need to do casting before composite construction. Reviewed By: kuhar Differential Revision: https://reviews.llvm.org/D143042
-
Aditya Kumar authored
Another patch to fix arcanist on newer php versions. See previous patch here: https://reviews.llvm.org/D129232 Authored by: Justin Stitt (justinstitt) Reviewed by: nickdesaulniers, hiraditya, foad Differential Revision: https://reviews.llvm.org/D131699
-
Peter Klausler authored
When character lengths are known at compilation time, report an error when a data target with a known length does not match the explicit length of a pointer that is being associated with it; see 10.2.2.3 paragraph 5. Differential Revision: https://reviews.llvm.org/D142755
-
Joseph Huber authored
Summary: Forget to update these tests after moving the input earlier.
-
Joseph Huber authored
Summary: The placement of input files can change the result of the linker. We should put the input files earlier to avoid this.
-
Petr Hosek authored
This allows building static libraries with Clang driver. Differential Revision: https://reviews.llvm.org/D143092
-
Peter Klausler authored
Emit an error message when the right-hand side expression of a statement function definition cannot be converted to the type of the statement function. Differential Revision: https://reviews.llvm.org/D142745
-