- Aug 01, 2023
-
-
Matt Arsenault authored
-
Amir Ayupov authored
We identify instructions to be instrumented based on Offset annotation. BOLT "expands" conditional tail calls into a conditional jump to a basic block with unconditional tail call. Move Offset annotation from former CTC to the tail call. For expanded CTC we keep Offset attached to the original instruction which is converted into a regular conditional jump, while leaving the newly created tail call without an Offset annotation. This leads to attempting the instrumentation of the conditional jump which points to the basic block with an inherited input offset thus creating an invalid edge description. At the same time, the newly created tail call is skipped entirely which means we're not creating a call description for it. If we instead reassign Offset annotation from the conditional jump to the tail call we fix both issues. The conditional jump will be skipped not creating an invalid edge description, while tail call will be handled properly (unformly with regular calls). Reviewed By: #bolt, maksfb Differential Revision: https://reviews.llvm.org/D156389
-
Augie Fackler authored
Three RUN lines mistakenly tried to write to the source dir instead of to a temp dir.
-
Amir Ayupov authored
Work around the issue of multiple profiles per function. Can happen with a stale profile which has separate profiles that in a new binary got merged and became aliases. Reviewed By: #bolt, maksfb Differential Revision: https://reviews.llvm.org/D156644
-
-
Johannes Doerfert authored
It was `inaccessiblemem: readwrite` before, no need for the read. No real benefit is expected but it can help debugging and other efforts. Differential Revision: https://reviews.llvm.org/D156478
-
Johannes Doerfert authored
Traps will not read/write the program state but they need an effect for preservation, similar to `llvm.assume`. We really want a new memory kind for that (see TODO), but for now `inaccessiblemem: write` is better than any possible effect. Differential Revision: https://reviews.llvm.org/D156476
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D156729
-
Johannes Doerfert authored
The new ompx.h header will give us a place to put extensions. The first are 3D getters for the common cuda values: `{threadId,threadDim,blockId,blockDim}.{x,y,z}` Differential Revision: https://reviews.llvm.org/D156501 -
Johannes Doerfert authored
This change makes the naming more consistent, I hope.
-
Alexey Bataev authored
If the actual instruction bitwidth does not match its original size, need to reestimate the casting opcode, the compiler cannot rely on the one, provided in the instruction.
-
David Green authored
This adds some basic handling for bf16 constants, attempting to treat them a lot like fp16 constants where it can. Zero immediates get lowered to FMOVH0, others either get lowered to FMOVWHr(MOVi32imm) or use FMOVHi if they can. Without fp16 they get expanded. This may not always be optimal, but fixes a gap in our lowering. See llvm/test/CodeGen/AArch64/f16-imm.ll for the equivalent fp16 test. Differential Revision: https://reviews.llvm.org/D156649
-
Michael Jones authored
In preparation for https://reviews.llvm.org/D156630 this patch cleans up all integer size and sign conversion warnings in printf. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D156723
-
Quinn Dawkins authored
Includes `inferConvolutionDims` based on the existing helper for contractions, `inferContractionDims`. This allows matching and identifying the relevant dims for a convolution sub-computation of a linalg operation. Additionally adds stride/dilations inference to the captures and convolution interface matcher. Differential Revision: https://reviews.llvm.org/D156080
-
Chia-hung Duan authored
Cached block may have nearly aligned address for a certain alignment so that we don't have to round up the size in advance. The rounding should only happen at determing the availability of a cached block. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D156582
-
Fangrui Song authored
GCC 7.3 cannot build 16.x releases. ``` In file included from /tmp/llvm-16/llvm/lib/Transforms/IPO/AttributorAttributes.cpp:14:0: /tmp/llvm-16/llvm/include/llvm/Transforms/IPO/Attributor.h:1137:32: error: duplicate initialization of ‘llvm::AnalysisGetter::HasLegacyWrapper<Analysis, std::void_t<typename Analysis::Lega cyWrapper> >’ constexpr bool AnalysisGetter::HasLegacyWrapper< ^~~~~~~~~~~~~~~~~ Analysis, std::void_t<typename Analysis::LegacyWrapper>> = true; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/llvm-16/llvm/include/llvm/Transforms/IPO/Attributor.h:1137:32: error: got 1 template parameters for ‘constexpr const bool llvm::AnalysisGetter::HasLegacyWrapper< <template-parameter-1 -1>, <template-parameter-1-2> >’ /tmp/llvm-16/llvm/include/llvm/Transforms/IPO/Attributor.h:1137:32: error: but 2 required ``` The 17.x and main branches have more failures, e.g. ``` llvm/lib/Transforms/Vectorize/LoopVectorize.cpp: `error: cannot decompose class type ‘std::pair<llvm::Value*, const llvm::SCEV*>’: ...` ``` We probably should just give up 7.1 and say that GCC<=7.3 is unsupported. There is evidence that GCC 7.4 works. I have verified that GCC 7.5 is able to build `check-{llvm,clang,clang-tools,lldb,lld,polly,mlir,bolt}`, but not flang due to at least `flang/Common/enum-class.h` and a `<charconv`> in a unittest. Link: https://discourse.llvm.org/t/require-gcc-7-5-as-gcc-7-3-cannot-build-llvm/72310 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D156286 -
Mehdi Amini authored
-
Craig Topper authored
We have multiple variations of InstrFormatR that pack different fields into the upper 7 bits. The other 25 bits are all the same. Add base class to capture this commonality and allow subclasses to explicitly define Inst{31-25}. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D156590 -
Craig Topper authored
We have multiple variations of InstrFormatI that pack different fields into the upper 12 bits. The other 20 bits are all the same. Add base class to capture this commonality and allow subclasses to explicitly define Inst{31-20}. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D156589 -
Bjorn Pettersson authored
Follow up to commit 41895843, "[InstCombine] Only perform one iteration". This will make sure verify-fixpoint/no-verify-fixpoint is mentioned when doing "opt -print-passes".
-
Martin Braenne authored
For the time being, we're keeping the `Strict` versions around as deprecated synonyms so that clients can be migrated, but these synonyms will be removed soon. Depends On D156673 Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D156674
-
Martin Braenne authored
Depends On D156672 Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D156673
-
Martin Braenne authored
This eliminates all uses of the deprecated accessors. Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D156672
-
Lang Hames authored
Access to individual DefinitionGenerators is serialized in order to make generators easier to implement: serializing access means that tryToGenerate methods don't have to handle concurrent, potentially overlapping, requests. Prior to this patch serialization was achieved by having each lookup acquire a lock on each generator, however this causes the lookup thread to block if the generator is in use. In the common case where many objects reference some common library symbol that is provided by a generator this may cause many threads to block concurrently preventing progress on other work. This patch changes the model so that lookups are automatically suspended if they need to use a generator that is already in use, and then automatically resumed once the generator is free. This is achieved by reusing the lookup suspension machinery that was introduced in 069919c9 for optionally asynchronous generators.
-
David Blaikie authored
-
Jonathan Peyton authored
* Add KMP_CPU_EQUAL and KMP_CPU_ISEMPTY to affinity mask API * Add printout of leader to hardware thread dump * Allow OMP_PLACES to restrict fullMask This change fixes an issue with the OMP_PLACES=resource(#) syntax. Before this change, specifying the number of resources did NOT change the default number of threads created by the runtime. e.g., OMP_PLACES=cores(2) would still create __kmp_avail_proc number of threads. After this change, the fullMask and __kmp_avail_proc are modified if necessary so that the final place list dictates which resources are available and how thus, how many threads are created by default. * Introduce hybrid core attributes to OMP_PLACES and KMP_AFFINITY For OMP_PLACES, two new features are added: 1) OMP_PLACES=cores:<attribute> where <attribute> is either intel_atom, intel_core, or eff# where # is 0 - number of core efficiencies-1. This syntax also supports the optional (#) number selection of resources. 2) OMP_PLACES=core_types|core_effs where this setting will create the number of core_types (or core_effs|core_efficiencies). For KMP_AFFINITY, the granularity setting is expanded to include two new keywords: core_type, and core_eff (or core_efficiency). This will set the granularity to include all cores with a particular core type (or efficiency). e.g., KMP_AFFINITY=granularity=core_type,compact will create threads which can float across a single core type. Differential Revision: https://reviews.llvm.org/D154547 -
David Blaikie authored
size() > 0 -> !empty indentation mismatched names on parameters in decls/defs const on value return types
-
Arnaud Botella authored
Current implementation outputs the parameter name when used with @param (or @tparam) doxygen tag but not the comment itself. Differential Revision: https://reviews.llvm.org/D156322
-
Peter Steinfeld authored
This update allows constant folding for many 128 bit floating point intrinsics through the library quadmath, which is only available on some platforms. Differential Revision: https://reviews.llvm.org/D156435
-
Joshua Batista authored
Add codegen for llvm bitreverse elementwise builtin The bitreverse elementwise builtin is necessary for HLSL codegen. Tests were added to make sure that the expected errors are encountered when these functions are given inputs of incompatible types, or too many inputs. The new builtin is restricted to integer types only. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D156357
-
spupyrev authored
This is a new algorithm for function layout (reordering) based on the call graph extracted from a profile data; see diffs down the stack for more details. This layout is very similar to the existing hfsort+, but perhaps a little better on some benchmarks. The goals of the change is as follows: (i) rename and replace hfsort+ with a newer (hopefully better) implementation. I'd prefer to keep both algs together for some time to simplify evaluation and transition, but do want to remove hfsort+ once we're confident that there are no regressions. (ii) unify the implementation of code layout algorithms across LLVM. Currently Passes/HfsortPlus.cpp and Utils/CodeLayout.cpp share many implementation-specific details; this diff unifies the code. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D153039
-
Augie Fackler authored
-
Nico Weber authored
-
Chia-hung Duan authored
RoundedSize is supposed to be used on directly mapping. To determine if a cached block is feasible, the size doesn't need to be rounded in advance. As a result, the use of RoundedSize may miss some chance of using cached blocks. This reverts commit 4c6b8bb8. Reviewed By: frs513 Differential Revision: https://reviews.llvm.org/D156583
-
Alex Langford authored
This commit does a few related things: - Removes unused function `uuid_is_null` - Removes unneeded includes of UuidCompatibility.h - Renames UuidCompatibility to AppleUuidCompatibility and adds a comment to clarify intent of header. - Moves AppleUuidCompatibility to the include directory Differential Revision: https://reviews.llvm.org/D156562
-
Maksim Kita authored
Fix typo in ScalarEvolution public method. Differential Revision: https://reviews.llvm.org/D156621
-
Jonas Devlieghere authored
Improve memory usage by reducing the lifetime of CTF types. Once a CTF type has been converted to a (complete) LLDB type, there's no need to keep it in memory anymore. For most types, we can free them right after creating the corresponding LLDB types. The only exception is record types, which are only completed lazily. Differential revision: https://reviews.llvm.org/D156606
-
John Harrison authored
Instead of creating psuedo source files for each stack frame this change adopts the new DAP “disassemble” request, allowing clients to inspect assembly instructions of files with debug info in addition to files without debug info. [[ https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disassemble | spec ]] See attached screenshot of the disassembly view. {F28473848} Reviewed By: wallace Differential Revision: https://reviews.llvm.org/D156493
-
Mark de Wever authored
Adds tests to guard against the issue solved in D156592. Depends on D156592 Reviewed By: ChuanqiXu, #libc, philnik Differential Revision: https://reviews.llvm.org/D156594
-
Mark de Wever authored
@ChuanqiXu noticed std::atomic was not properly exported in the std module. Investigation showed other named declarations were not exported either. This fixes the issue. Depends on D156550 Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D156592
-