- Aug 26, 2022
-
-
Nicolai Hähnle authored
Follow the pattern used in MLIR for the cl::opt instances. v2: - make DebugCounter::isCountingEnabled public so that the DebugCounterOwner doesn't have to be a nested class. This simplifies later changes v3: - remove the indirection via DebugCounterOwner::instance() Differential Revision: https://reviews.llvm.org/D129116
-
Adrian Kuegel authored
-
Adrian Kuegel authored
-
Sheng authored
Reviewers: RKSimon Differential Revision: https://reviews.llvm.org/D132007
-
Yunze Zhu authored
In patch D121183, target abi is get from .ll file's target-abi attribute and set in RISCVAsmPrinter::emitFunctionEntryLabel function. In https://github.com/llvm/llvm-project/issues/57242 , an api mismatch error may be caused by failing to call function RISCVAsmPrinter::emitFunctionEntryLabel to set target-abi to correct one when the .ll is empty or a module has no function. This patch move setting target-abi part to function RISCVAsmPrinter::emitStartOfAsmFile, make sure all .ll file and module in LTO read target-abi from module flag and set, with or without function. Signed-off-by:
xiaojing.zhang <xiaojing.zhang@xcalibyte.com> Signed-off-by:
jianxin.lai <jianxin.lai@xcalibyte.com> Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D132204
-
LiaoChunyu authored
Running on RISCV machine llvm-exegesis I faced with trouble: can't measure C_ADDI16SP, beacuse immediate has type simm10_lsb0000nonzero. Patch adds support for processing this immediate operand type. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132650
-
Chuanqi Xu authored
Closing https://github.com/llvm/llvm-project/issues/57339 The root cause for this issue is an pre-mature optimization to eliminate the index for the final suspend point since we feel like we can judge if a coroutine is suspended at the final suspend by if resume_fn_addr is null. However this is not true if the coroutine exists via an exception in promise.unhandled_exception(). According to [dcl.fct.def.coroutine]p14: > If the evaluation of the expression promise.unhandled_exception() > exits via an exception, the coroutine is considered suspended at the > final suspend point. But from the perspective of the implementation, we can't set the coro index to the final suspend point directly since it breaks the states. To fix the issue, we block the optimization if we find there is any unwind coro end, which indicates that it is possible that the coroutine exists via an exception from promise.unhandled_exception(). Test Plan: folly
-
owenca authored
-
WANG Xuerui authored
Similar to the RISCV logic added in D62062. With this patch applied, llvm-dwarfdump works on existing LoongArch object files, but generation of debuginfo on LoongArch is still pending on proper support for relocations, so no test cases this time. They will come later. Differential Revision: https://reviews.llvm.org/D132019
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D132453
-
Slava Zakharin authored
Power functions are implemented as linkonce_odr scalar functions for integer types used by IPowI operations met in a module. Vector form of IPowI is linearized into a sequence of calls of the scalar functions. Differential Revision: https://reviews.llvm.org/D129810
-
Joe Loser authored
Many tests in `libcxx/test/std/strings` use `#if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L` which can be replaced with the more terse `#ifndef TEST_HAS_NO_CHAR8_T`. Differential Revision: https://reviews.llvm.org/D132626
-
Joe Loser authored
`llvm::identity` is similar to `std::identity` from C++20, but one surprising thing is that `llvm::identity` is not a transparent function object. Add the `is_transparent` type alias to denote it can be used as a transparent function object. Differential Revision: https://reviews.llvm.org/D132628
-
jacquesguan authored
Differential Revision: https://reviews.llvm.org/D132637
-
Fangrui Song authored
-
Adrian Vogelsgesang authored
Follow-up to https://reviews.llvm.org/D132415 Fixes https://lab.llvm.org/buildbot/#/builders/17/builds/26630
-
Alexander Yermolovich authored
We were trying to process .debug_addr for CU that doesn't have it. This resulted in assert. Example came from GCC that also doesn't use DW_OP_addrx in DW_FORM_exprloc. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D132422
-
Chris Bieneman authored
This change exposes the abs library function for HLSL scalar types. Abs is supported for all scalar, vector and matrix types. This patch only adds a subset of scalar type support. Fixes #57100 (https://llvm.org/pr57100) The full documentation of the HLSL abs function is available here: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-abs Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D131718
-
Peter Klausler authored
Implement constant folding of the intrinsic function DOT_PRODUCT(). Differential Revision: https://reviews.llvm.org/D132688
-
Jonas Devlieghere authored
Computer the slide when and apply it to each entry's vm addr when reading from memory. Differential revision: https://reviews.llvm.org/D132710
-
Hsiangkai Wang authored
AArch64 only supports tiny, small, and large code model. Show error messages when users specify other code model. Fix https://github.com/llvm/llvm-project/issues/53402 Differential Revision: https://reviews.llvm.org/D132538
-
Peter Klausler authored
A NULL() pointer is a valid actual argument for a procedure pointer dummy argument whose intent is INTENT(IN); it should also be acceptable for a procedure pointer dummy argument with unspecified intent. Also make it possible to discern null object pointers from null procedure pointers, so that an attempt to use one in place of the other in a context where the distinction matters will still elicit an error. Differential Revision: https://reviews.llvm.org/D132687
-
Valery N Dmitriev authored
Reduction feeds single insertelement instruction.
-
Peter Klausler authored
A specific procedure in the list of specific procedures associated with a generic interface needs to be a symbol that is not inadvertently resolved to its ultimate symbol in another module when it is also shadowed by a generic interface of the same name. Differential Revision: https://reviews.llvm.org/D132686
-
Peter Klausler authored
The intrinsic procedure C_F_POINTER needs to be a generic interface in intrinsic module ISO_C_BINDING. (It also needs to be implemented, but that remains a TODO for either lowering or the runtime.) Differential Revision: https://reviews.llvm.org/D132685
-
LLVM GN Syncbot authored
-
Jonas Devlieghere authored
This patch teaches LLDB about Mach-O filesets. Filsets are Mach-O files that contain a bunch of other Mach-O files. Unlike universal binaries, which have a different header, Filesets use load commands to describe the different entries it contains. Differential revision: https://reviews.llvm.org/D132433
-
Peter Klausler authored
Semantic checking for calls was requiring an actual argument that corresponds to an ASYNCHRONOUS or VOLATILE dummy argument to be definable, but this is not a constraint or requirement in the standard and doesn't even make sense as a warning; these two attributes are "scopable" in the context of BLOCK constructs. Remove the checks and adjust the tests. Differential Revision: https://reviews.llvm.org/D132684
-
Peter Klausler authored
When a symbol from the enclosing scope is necessary to declare a procedure or procedure pointer dummy argument or function result for a procedure interface, note it in the collection of symbols to be imported when scanning that interface. Differential Revision: https://reviews.llvm.org/D132683
-
Peter Klausler authored
When, due to one or more USE associations, possibly with renaming, a symbol conflicts with another of the same name in the same scope, don't raise an error if both symbols resolve to the same intrinsic procedure or to the same non-generic external procedure interface -- the usage is unambiguous and safe, and (14.2.2 p8) standard. (Generic interfaces already work by way of combining their sets of specific procedures.) Differential Revision: https://reviews.llvm.org/D132682
-
Peter Klausler authored
A construct entity of an ASSOCIATE or SELECT TYPE construct should be acceptable as an index variable of a concurrent-header in a FORALL or DO CONCURRENT, so long as it also satisfies other requirements. Differential Revision: https://reviews.llvm.org/D132681
-
Peter Klausler authored
Fortran defines derived type definitions and explicit interface blocks for subroutines and functions to be nestable scopes for statement labels, even though such labels are useless for all purposes. Handle these scopes in label resolution so that bogus errors about conflicting labels in "real" code don't come out. Note that BLOCK constructs could have also been defined as scopes for statement labeling, but were not. Differential Revision: https://reviews.llvm.org/D132679
-
Roy Jacobson authored
This patch implements P0848 in Clang. During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constraints for all the SMFs and compare the constraints to compute the eligibility. We defer the computation of the type's [copy-]trivial bits from addedMember to the eligibility computation, like we did for destructors in D126194. `canPassInRegisters` is modified as well to better respect the ineligibility of functions. Note: Because of the non-implementation of DR1734 and DR1496, I treat deleted member functions as 'eligible' for the purpose of [copy-]triviallity. This is unfortunate, but I couldn't think of a way to make this make sense otherwise. Reviewed By: #clang-language-wg, cor3ntin, aaron.ballman Differential Revision: https://reviews.llvm.org/D128619
-
Greg Clayton authored
When fission is enabled, we were indexing the skeleton CU _and_ the .dwo CU. Issues arise when users enable compiler options that add extra data to the skeleton CU (like -fsplit-dwarf-inlining) and there can end up being types in the skeleton CU due to template parameters. We never want to index this information since the .dwo file has the real definition, and we really don't want function prototypes from this info since all parameters are removed. The index doesn't work correctly if it does index the skeleton CU as the DIE offset will assume it is from the .dwo file, so even if we do index the skeleton CU, the index entries will try and grab information from the .dwo file using the wrong DIE offset which can cause errors to be displayed or even worse, if the DIE offsets is valid in the .dwo CU, the wrong DIE will be used. We also fix DWO ID detection to use llvm::Optional<uint64_t> to make sure we can load a .dwo file with a DWO ID of zero. Differential Revision: https://reviews.llvm.org/D131437
-
Louis Dionne authored
This patch adds support for passing basic Lit features to the ADDITIONAL_COMPILE_FLAGS keyword by enclosing them in parentheses. This is done to support https://llvm.org/D131836. In the future, we should instead add proper support for conditional keywords in Lit, so that we can evaluate arbitrary Lit boolean expressions such as `ADDITIONAL_COMPILE_FLAGS(x && !y): -flag`. Note that I can see this being exceptionally useful when combined with RUN commands, which would allow using different commands on different systems. For example: RUN(!buildhost=windows): something RUN(buildhost=windows): something-else Differential Revision: https://reviews.llvm.org/D132575
-
Peter Klausler authored
The result of MINVAL over an empty default character array should (per the standard) have a 127 in every character position, not just the first. Differential Revision: https://reviews.llvm.org/D132677
-
Philip Reames authored
When we have a dependency with a dependence distance which can only be hit on an iteration beyond the actual trip count of the loop, we can ignore that dependency when analyzing said loop. We already had this code, but had restricted it solely to unknown dependence distances. This change applies it to all dependence distances. Without this code, we relied on the vectorizer reducing VF such that our infeasible dependence was respected. This usually worked out to about the same result, but not always. For fixed length vectorization, this could mean a smaller VF than optimal being chosen or additional runtime checks. For scalable vectorization - where the bounds on access implied by VF are broader - we could often not find a feasible VF at all. Differential Revision: https://reviews.llvm.org/D131924
-
Adhemerval Zanella authored
Similar to D107861. Some tools required the GNU ABI mark to output the symbol is a IFUNC type correctly (for instance binutils readelf). Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D131162
-
Jeff Niu authored
`oneToOneRewrite` segfaulted for zero result-ops because a null type was being passed to the op builders. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D132702
-
Jakub Kuderski authored
This is so that future conversions do not have to figure out how to create matching boolean types for the second result. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D132630
-