- Sep 22, 2022
-
-
Joel E. Denny authored
Based on result shown at: <https://lab.llvm.org/buildbot/#/builders/216/builds/10120>
-
LLVM GN Syncbot authored
-
Xiang Li authored
This is first part for support cbuffer/tbuffer. The format for cbuffer/tbuffer is BufferType [Name] [: register(b#)] { VariableDeclaration [: packoffset(c#.xyzw)]; ... }; More details at https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-constants New keyword 'cbuffer' and 'tbuffer' are added. New AST node HLSLBufferDecl is added. Build AST for simple cbuffer/tbuffer without attribute support. The special thing is variables declared inside cbuffer is exposed into global scope. So isTransparentContext should return true for HLSLBuffer. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D129883 -
Thomas Symalla authored
Pre-commit a test for an upcoming change.
-
zhijian authored
Summary: 1. Refactor with XCOFFObjectFile::getImportFileTable with function getSectionFileOffsetToRawData instead of getLoaderSectionAddress 2. Delete the function getLoaderSectionAddress. Reviewers: James Henderson,Esme Yi Differential Revision: https://reviews.llvm.org/D134280
-
Arthur Eubanks authored
Currently if we mark an SCC as invalid, if we haven't set UR.UpdatedC, we won't propagate the PreservedAnalyses up to the parent pass (adaptor/pass manager). In the provided test case, we inline the function into itself then delete it as it has no users. The SCC is marked as invalid without providing a replacement UR.UpdatedC. Then the CGSCC pass manager and adaptor discard the PreservedAnalyses. Instead, handle PreservedAnalyses first before bailing due to the invalid SCC. Fixes crashes due to out of date analyses.
-
Valentin Clement authored
In some case, the ENTRY statement in a procedure is including some dummy argument. Until now, deallocation of intent(out) allocatable was not checking for this and it could result in a segmentation fault. This patch avoids deallocation when the value is not in the ENTRY stmt. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D134342
-
Min-Yih Hsu authored
Previously in mlir-translate, if debug info was absent in a llvm::Instruction, we tried to create one using the name of its defined value in a textual LLVM IR file as the (pseudo) debug file name. However, in order to get that name, we need to call out to LLVM's SlotTracker, which, surprisingly, took a lot of time. Judging from the usefulness of such pseudo debug file name and the performance penalty during translation, this patch simply use "imported-bitcode" as the debug file name in these case. Eliminating the need of using (expensive) LLVM value numbering. Differential Revision: https://reviews.llvm.org/D134305
-
wlei authored
There could be comma in one perf file path, since at this point it only support one file as input, there is no need for the `llvm::cl::MiscFlags::CommaSeparated` option. Reviewed By: hoy, wenlei Differential Revision: https://reviews.llvm.org/D134287
-
natashaknk authored
Partial rollback to D133389 Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D134370
-
Joel E. Denny authored
This is to help debug the failure 28412d18 caused and f47a5df9 failed to fix at: <https://lab.llvm.org/buildbot/#/builders/216/builds/10117>
-
Konstantina authored
Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D130949
-
Ashay Rane authored
Prior to this patch, a Windows build of llvm-lto using clang failed with the error: `LTO.def: unknown file type`. The reason for this failure is that .DEF files are used by the linker not by the clang compiler. The MSVC compiler+linker handles this transparently, but if we're using clang (or gcc), then we need to tell the compiler to forward this flag to the linker. This patch adds the necessary `-Wl` flag to fix the problem. Reviewed By: rnk, mstorsjo Differential Revision: https://reviews.llvm.org/D134165
-
Akira Hatanaka authored
alignments In the following code, the first element is aligned on a 16-byte boundary, but the remaining elements aren't: ``` typedef char int8_a16 __attribute__((aligned(16))); int8_a16 array[4]; ``` Currently clang doesn't reject the code, but it should since it can cause crashes at runtime. This patch also fixes assertion failures in CodeGen caused by the changes in https://reviews.llvm.org/D123649. Differential Revision: https://reviews.llvm.org/D133711
-
Joel E. Denny authored
`llvm/utils/lit/tests/Inputs/shtest-define/value-escaped.txt` broke at least at <https://lab.llvm.org/buildbot/#/builders/216/builds/10114>. The problem appears to be a non-portable `echo` command line.
-
Philip Reames authored
The merged routines are not-idiomatic, and the code sharing that results is prettty minimal. The confusion factor is not justified.
-
- Sep 21, 2022
-
-
J. Ryan Stinnett authored
This fixes up the header length which regressed in 8c1a9e3c.
-
Kazu Hirata authored
This patch factors out common code in InlineOrder.cpp. Without this patch, the model is to ask classes like SizePriority and CostPriority to compare a pair of call sites: bool hasLowerPriority(const CallBase *L, const CallBase *R) const override { while these priority classes have their own caches of priorities: DenseMap<const CallBase *, PriorityT> Priorities; This model results in a lot of duplicate code like hasLowerPriority and updateAndCheckDecreased. This patch changes the model so that priority classes just have two methods to compute a priority for a given call site and to compare two previously computed priorities (as opposed to call sites). Facilities like hasLowerPriority and updateAndCheckDecreased move to PriorityInlineOrder along with the map from call sites to their priorities. PriorityInlineOrder becomes a template class so that it can accommodate different priority classes. Differential Revision: https://reviews.llvm.org/D134149 -
J. Ryan Stinnett authored
This changes the GC intrinsics to use the same header styling as the others.
-
Joel E. Denny authored
These directives define per-test lit substitutions. The concept was discussed at <https://discourse.llvm.org/t/iterating-lit-run-lines/62596/10>. For example, the following directives can be inserted into a test file to define `%{cflags}` and `%{fcflags}` substitutions with empty initial values, which serve as the parameters of another newly defined `%{check}` substitution: ``` // DEFINE: %{cflags} = // DEFINE: %{fcflags} = // DEFINE: %{check} = %clang_cc1 %{cflags} -emit-llvm -o - %s | \ // DEFINE: FileCheck %{fcflags} %s ``` The following directives then redefine the parameters before each use of `%{check}`: ``` // REDEFINE: %{cflags} = -foo // REDEFINE: %{fcflags} = -check-prefix=FOO // RUN: %{check} // REDEFINE: %{cflags} = -bar // REDEFINE: %{fcflags} = -check-prefix=BAR // RUN: %{check} ``` Of course, `%{check}` would typically be more elaborate, increasing the benefit of the reuse. One issue is that the strings `DEFINE:` and `REDEFINE:` already appear in 5 tests. This patch adjusts those tests not to use those strings. Our prediction is that, in the vast majority of cases, if a test author mistakenly uses one of those strings for another purpose, the text appearing after the string will not happen to have the syntax required for these directives. Thus, the test author will discover the mistake immediately when lit reports the syntax error. This patch also expands the documentation on existing lit substitution behavior. Reviewed By: jhenderson, MaskRay, awarzynski Differential Revision: https://reviews.llvm.org/D132513
-
Chris Bieneman authored
In order to make this easier to track I've filed issues for each of the HLSL FIXME comments that I can find. I may have missed some, but I want this to be the new default mode.
-
Matt Arsenault authored
This is not a MIR printer/parser test, so it belongs with the ordinary codegen tests.
-
rkayaith authored
This adds support for pointer DLTI entries in LLVMIR export, e.g. ``` // translated to: p0:32:64:128 #dlti.dl_entry<!llvm.ptr, dense<[32,64,128]> : vector<3xi32>> // translated to: p1:32:32:32:64 #dlti.dl_entry<!llvm.ptr<1>, dense<[32,32,32,64]> : vector<4xi32>> ``` Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D133434
-
Anders Langlands authored
Adds a function to check if a method has been deleted by copy-pasting the existing implementation of clang_CXXMethod_isDefaulted and changing it to call CXXMethod::isDeleted() instead. Differential Revision: https://reviews.llvm.org/D133924
-
bixia1 authored
Add memref.realloc and canonicalization of the op. Add conversion patterns for lowering the op to LLVM using unaligned alloc or aligned alloc based on the conversion option. Add filecheck tests for parsing and converting the op. Add an integration test. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D133424
-
Alexey Bataev authored
Mask might be larger than the NumElts-OffsetBeg, need to use actual indices to avoid acces out of bounds.
-
Nikita Popov authored
-
Florian Hahn authored
Without this patch, the assertion triggers below on the test case, because we are using different oracles for the verification. Assertion failed: (Targets == NoChunksCounter.count() && "number of chunks changes when reducing"), function runDeltaPass, file Delta.cpp, line 272. -
Graham Hunter authored
-
Simon Pilgrim authored
-
zhijian authored
Summary: since default object mode of llvm-nm is change to -X32 (from default -Xany) in patch https://reviews.llvm.org/D132494.In order not effect the test cases in clang/test we need to change "llvm-nm" to "env OBJECT_MODE=any llvm-nm" in clang/test for AIX OS Reviewers: James Henderson,David Tenty, Hubert Tong Differential Revision: https://reviews.llvm.org/D134284
-
Matt Arsenault authored
-
Sanjay Patel authored
The transform to create a final fma was added with: D132837 / c98a46fe These tests are intended to show the minimal fast-math-flags necessary to enable the fold: currently only the final fadd needs to have "reassoc".
-
Alex Richardson authored
This allows MachineCopyPropagation to eliminate copies of constant registers such as zero registers. They were previously not being eliminated as the check for MO.clobbersPhysReg(AvailSrc) would return true for constant registers such as MIPS $zero. To avoid having to manually add the zero registers to all CalleeSavedRegs instantiations in tablegen, I instead added a new isConstant bit to the Register and set this for MIPS, RISC-V, and AArch64 zero registers. RegisterInfoEmitter.cpp looks at this flag and adds all constant registers to the preserved register mask. This may also benefit other passes but so far I have only seen differences in MachineCopyPropagation. In the future it might make sense to generate `isConstantPhysReg()` from this information. Original source: https://github.com/CTSRD-CHERI/llvm-project/commit/8588d8b81458ed6d87b674893e7752e6a6915574 Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D131958
-
Alex Richardson authored
This test shows that the save of MIPS $zero to a callee-saved register is not elided by the machine-cp pass. Differential Revision: https://reviews.llvm.org/D131957
-
Oleg Shyshkov authored
Summary: This change will bring all helpers that work with iterator types to one place. Currently getDimsOfType is is declared in Linalg.h, but not directly included by LinalgInterfaces. It worked so far only because all the places that include LinalgInterfaces.h also include Linalg.h directly or indirectly. Differential Revision: https://reviews.llvm.org/D134350
-
Simon Pilgrim authored
Add costs for the funnel shift instructions - fixes some discrepancies I was hitting with costs numbers from the 'cost-tables vs llvm-mca' script D103695
-
Sanjay Patel authored
This stops Negator from transforming: `C1 - shl X, C2 --> mul X, (1<<C2) + C1` ...in the general case. There does not seem to be any analysis benefit to using mul in IR, and there's definitely downside in codegen (particularly when the multiply has to be expanded). If `C1` is 0, then there's a stronger argument that the single mul is a better canonicalization than negate-of-shl, but we may want to remove that too. This was noted as a potential conflict for D133667. Differential Revision: https://reviews.llvm.org/D134310
-
Louis Dionne authored
This reverts commit 887b8bd7 while we work on resolving issues brought up in https://reviews.llvm.org/D132480.
-
Simon Pilgrim authored
vbmi2 has vector funnel shift support that we should be costing correctly
-