- Mar 02, 2024
-
-
Daniil Kovalev authored
Reverts llvm/llvm-project#82363 See a build failure related to an issue discovered by memory sanitizer (use of uninitialized value): https://lab.llvm.org/buildbot/#/builders/37/builds/31965
-
Michael Spencer authored
As per the comment in `raw_fd_ostream`'s destructor, you must call `clear_error()` to prevent a call to `report_fatal_error()`. There's not really a way to test this, but we did encounter it in the wild. rdar://117347895
-
Daniil Kovalev authored
Currently, for x86 and x86_64 triples, "+sse" and "+sse2" are appended to `Features` vector of `TargetOptions` unconditionally. This vector is later reset in `TargetInfo::CreateTargetInfo` and filled using info from `FeaturesAsWritten` vector, so previous modifications of the `Features` vector have no effect. For x86_64 triple, we append "sse2" unconditionally in `X86TargetInfo::initFeatureMap`, so despite the `Features` vector reset, we still have the desired sse features enabled. The corresponding code in `X86TargetInfo::initFeatureMap` is marked as FIXME, so we should not probably rely on it and should set desired features properly in `ClangExpressionParser`. This patch changes the vector the features are appended to from `Features` to `FeaturesAsWritten`. It's not reset later and is used to compute resulting `Features` vector.
-
WÁNG Xuěruì authored
One has to probe for platform capability prior to use with HWCAP, according to LoongArch documentation.
-
Daniil Kovalev authored
Reverts llvm/llvm-project#82595 See build failure https://lab.llvm.org/buildbot/#/builders/139/builds/60549
-
Shih-Po Hung authored
When MVT is not a vector type, TCK_CodeSize should return an invalid cost. This patch adds a check in the beginning to make sure all cost kinds return invalid costs consistently. Before this patch, TCK_CodeSize returns a valid cost on scalar MVT but other cost kinds doesn't. This fixes the issue #83294 where a loop contains vector instructions and MVT is scalar after type legalization when the vector extension is not enabled,
-
Joseph Huber authored
Summary: We use this extra directory for offloading languages like CUDA or OpenMP. We made the '/gpu' directory for the regular headers but not the others. Fix that for now.
-
Daniil Kovalev authored
In `Pattern::parseVariable`, for global variables (those starting with '$') and for pseudo variables (those starting with '@') the first character is consumed before actual variable name parsing. If the name is empty, it leads to out-of-bound access to the corresponding `StringRef`. This patch adds an if statement against the case described.
-
Alex Richardson authored
I was getting build failures due to missing <cstddef> when building the libfuzzer tests. It turns out that the custom command was using COMPILER_RT_TEST_COMPILER when building the source file rather than the COMPILER_RT_TEST_CXX_COMPILER. Pull Request: https://github.com/llvm/llvm-project/pull/83090
-
Alexander Richardson authored
In my build environment, the output is a relative path: ``` test/dfsan/reaches_function.c:34 add.dfsan test/dfsan/reaches_function.c:56 main ``` This fixes check-dfsan in my configuration: ``` cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja -DCMAKE_C_COMPILER=$HOME/output/upstream-llvm/bin/clang -DCMAKE_CXX_COMPILER=$HOME/output/upstream-llvm/bin/clang++ -DCOMPILER_RT_INCLUDE_TESTS=ON -DLLVM_EXTERNAL_LIT=$HOME/build/upstream-llvm-project-build/bin/llvm-lit -DLLVM_CMAKE_DIR=$HOME/output/upstream-llvm -DCOMPILER_RT_DEBUG=OFF -S $HOME/src/upstream-llvm-project/compiler-rt -B $HOME/src/upstream-llvm-project/compiler-rt/cmake-build-all-sanitizers ``` Reviewers: browneee, vitalybuka Reviewed By: vitalybuka Pull Request: https://github.com/llvm/llvm-project/pull/83089
-
lntue authored
-
Joseph Huber authored
Summary: These values were incorrectly flipped, setting the size of the blocks to the threads and vice-versa. When I originally wrote the thread utilities it was using COV4 which used an implicit format. Then when I updated I accidentally flipped them and never noticed because nothing depended on the size of the threads until I checked it manually.
-
Sergei Barannikov authored
-
Joseph Huber authored
-
Peter Klausler authored
The specific intrinsic function INDEX should work as a PROCEDURE interface in the declaration of a procedure pointer or dummy procedure, and it should be compatible with a user-defined interface. Fixes https://github.com/llvm/llvm-project/issues/82397.
-
Peter Klausler authored
It's probably a bad idea to have a Cray pointer whose type is a derived type that is not a sequence type, but the feature is a nonstandard extension in the first place. Downgrade the message to a warning. Fixes https://github.com/llvm/llvm-project/issues/82210.
-
Jan Svoboda authored
-
Jan Svoboda authored
-
Jan Svoboda authored
-
Jan Svoboda authored
-
Jan Svoboda authored
-
Jan Svoboda authored
-
Peter Klausler authored
When a procedure declaration statement has a binding label, it must declare no more than one procedure. Fixes https://github.com/llvm/llvm-project/issues/82528.
-
Peter Klausler authored
Use BypassGeneric() to process the name of an interface in a procedure declaration statement, so that if it's the name of a generic with a homonymous specific procedure, that's what defines the interface. Fixes https://github.com/llvm/llvm-project/issues/82267.
-
Fangrui Song authored
Similar to BoolFOption/BoolGOption for -f* and -g*
-
Peter Klausler authored
Fortran allows a procedure declaration statement with no interface or type, with an explicit type declaration statement elsewhere being used to define a function's result. Fixes https://github.com/llvm/llvm-project/issues/82006.
-
Peter Klausler authored
When DATA statement objects have derived types obtained by implicit typing rules, their types aren't known until specification part processing is complete. In the case of a derived type, any component name in a designator may still be in need of name resolution. Take care of it in the deferred check visitor that runs at the end of name resolution in each specification and execution part. Fixes https://github.com/llvm/llvm-project/issues/82069.
-
Fangrui Song authored
-
Farzon Lotfi authored
removing the additions of `err_vec_builtin_non_vector_all` & `err_vec_builtin_incompatible_vector_all` caused by https://github.com/llvm/llvm-project/pull/83077. Instead adding a select option to `err_vec_builtin_non_vector` & `err_vec_builtin_incompatible_vector` to account for uses where there are more than two arguments.
-
Peter Klausler authored
Include variable selectors ("select type (x => y)") as a context in which a whole assumed-size array may legitimately appear. Fixes https://github.com/llvm/llvm-project/issues/81910. -
Peter Klausler authored
…istinguishing characteristic We note whether a procedure's interface is explicit or implicit as an attribute of its characteristics, so that other semantics can be checked appropriately, but this internal attribute should not be used as a distinguishing characteristic in itself. Fixes https://github.com/llvm/llvm-project/issues/81876.
-
Peter Klausler authored
Address a reported C++ coding "suspicious condition". Fixes https://github.com/llvm/llvm-project/issues/80807.
-
Peter Klausler authored
Ensure that the values in a DATA-like default component initialization pass through expression analysis. Fixes https://github.com/llvm/llvm-project/issues/81097.
-
Peter Klausler authored
The presence of a type in the prefix of a SUBROUTINE statement should elicit an error message, not a crash. Fixes https://github.com/llvm/llvm-project/issues/80530.
-
Peter Klausler authored
When statement function expressions are analyzed, ensure that the semantics context has a valid location set, otherwise a type spec (like "integer::") can lead to a crash. Fixes https://github.com/llvm/llvm-project/issues/80532.
-
Cyndy Ishida authored
-
Peter Klausler authored
When a separate module procedure is defined with a MODULE PROCEDURE and its corresponding interface has a binding label, the compiler was emitting an error about mismatching binding labels because the binding label wasn't being copied into the subprogram's definition.
-
Cyndy Ishida authored
* This patch introduces a container class, for holding records and attributes only collectible from the clang frontend, which is a subclass of `llvm::MachO::RecordsSlice` * This also prunes out collecting declarations from headers that aren't considered input to installapi. * Uses these constructs for collecting global objective-c interfaces.
-
Peter Klausler authored
The standard states that data objects involved in an asynchronous data transfer statement gain the ASYNCHRONOUS attribute implicitly in the surrounding subprogram or BLOCK scope. This attribute affects the checks in call semantics, as an ASYNCHRONOUS actual object associated with an ASYNCHRONOUS dummy argument must not require data copies in or out. (Most compilers don't implement implied ASYNCHRONOUS attributes correctly; XLF gets these right, and GNU is close.)
-
Peter Klausler authored
The present limit of 63 is too low for some tests; bump it up to 1023 by using an array of bit-sets.
-