- Aug 23, 2022
-
-
River Riddle authored
We were accessing the region state after it got popped from the stack.
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132235
-
Philip Reames authored
OperandValueKind and OperandValueProperties both provide facts about the operands of an instruction for purposes of cost modeling. We've discussed merging them several times; before I plumb through more flags, let's go ahead and do so. This change only adds the client side interface for getArithmeticInstrCost and makes a couple of minor changes in client code to prove that it works. Target TTI implementations still use the split flags. I'm deliberately splitting what could be one big change into a series of smaller ones so that I can lean on the compiler to catch errors along the way.
-
Arthur Eubanks authored
-
Matthias Braun authored
`RegisterClassInfo` caches information like allocation orders and reuses it for multiple machine functions where possible. However the `MCPhysReg *CalleeSavedRegs` field used to test whether the set of callee saved registers changed did not work: After D28566 `MachineRegisterInfo::getCalleeSavedRegs()` can return dynamically computed CSR sets that are only valid while the `MachineRegisterInfo` object of the current function exists. This changes the code to make a copy of the CSR list instead of keeping a possibly invalid pointer around. Differential Revision: https://reviews.llvm.org/D132080
-
Nico Weber authored
Before this patch, open-source clang would consider `-target x86_64-apple-darwin -mios-simulator-version-min=11.0` as targeting the iOS simulator, due to the mios flag informing it that we want to target iOS, and logic in the driver then realizing that x86 iOS builds must be the simulator. However, for `-target arm64-apple-darwin -mios-simulator-version-min=11.0` that didn't work and clang thought that it's building for actual iOS, and not for the simulator. Due to this, building compiler-rt for arm64 iossim would lead to all .o files in RTSanitizerCommonSymbolizer.iossim.dir being built for iOS instead of for iOS simulator, and clang would ask ld64 to link for iOS, but using the iPhoneSimulator sysroot. This would then lead to many warnings from ld64 looking like: ld: warning: building for iOS, but linking in .tbd file (.../iPhoneSimulator.sdk/usr/lib/libc++abi.tbd) built for iOS Simulator Worse, with ld64.lld, this diagnostic is currently an error instead of a warning. This patch makes it so that the presence of -mios-simulator-version-min= now informs clang that we're building for simulator. That way, all the .o files are built for simulator, the linker is informed that we're building for simulator, and everything Just Works. (Xcode's clang already behaves like this, so this makes open-source clang match Xcode clang.) We can now likely remove the hack to treat non-mac darwin x86 as simulator, but doing that feels slightly risky, so I'm leaving that for a follow-up patch. (This patch is made necessary by the existence of arm64 macs.) Differential Revision: https://reviews.llvm.org/D132258
-
- Aug 22, 2022
-
-
Goran Flegar authored
-
Guillaume Chatelet authored
-
Stephen Tozer authored
Currently, InstrRefLDV only handles DBG_VALUE instructions, not DBG_VALUE_LIST, and as a result of this it handles these instructions using functions that only work for that type of debug value, i.e. using getOperand(0) to get the debug operand. This patch changes this to use the generic debug value functions, such as getDebugOperand and isDebugOffsetImm, as well as adding an IsVariadic field to the DbgValueProperties class and a few other minor changes to acknowledge DBG_VALUE_LISTs. Note that this patch does not add support for DBG_VALUE_LIST here, but is a precursor to other patches that do add that support. Differential Revision: https://reviews.llvm.org/D128174
-
Guillaume Chatelet authored
-
Matthias Springer authored
tensor.pad is lowered to tensor.generate + tensor.insert_slice during bufferization. For best performance with constant padding values, users should vectorize the IR before bufferizing it. This change also relaxes tje restriction that no new ops that bufferize to a memory write should be added during bufferization. Since bufferization has been split into two steps a while ago (tensor copy insertion + bufferization), it is reasonable to allow this now. Differential Revision: https://reviews.llvm.org/D132355
-
Matthias Springer authored
TileToForeachThreadOp now accepts mixed SSA value operands / index attributes for tile_sizes and num_threads. (Reusing OperandsOrIntegersSizesList.) In case of an operand, a PDL_Operation must be specified that is mapped to a payload op that returns the tile size or number of threads. Differential Revision: https://reviews.llvm.org/D131949
-
Denis Antrushin authored
Changed check line to accomodate assertion text difference on mac and windows; added 'REQUIRES: asserts' line. This reverts commit 89aaae57.
-
Chuanqi Xu authored
The original commandline example was not correct in some environments. Adjust the example to avoid any misunderstanding.
-
Phoebe Wang authored
This patch fixes lit fails after D132342. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132372
-
Stephen Tozer authored
In the InstrRefBasedImpl for LiveDebugValues, we attempt to propagate debug values through basic blocks in part by checking to see whether all a variable's incoming debug values to a BB "agree", i.e. whether their properties match and they refer to the same underlying value. Prior to this patch, the check for agreement between incoming values relied on exact equality, which meant that a VPHI and a Def DbgValue that referred to the same underlying value would be seen as disagreeing. This patch changes this behaviour to treat them as referring to the same value, allowing the shared value to propagate into the BB. Differential Revision: https://reviews.llvm.org/D125953
-
Aaron Ballman authored
It was originally left off thinking the paper only impacts the C standard library, but Clang supports diagnostics for incorrect use of a format specifier, so this paper has some frontend impacts as well.
-
Michael Buch authored
This check was put in place to prevent static functions from translation units outside the one that the current expression is evaluated from taking precedence over functions in the global namespace. However, this is really a different bug. LLDB lumps functions from all CUs into a single AST and ends up picking the file-static even when C++ context rules wouldn't allow that to happen. This patch removes the check so we apply the AsmLabel to all FunctionDecls we create from DWARF if we have a linkage name available. This makes the code-path easier to reason about and allows calling static functions in contexts where we previously would've chosen the wrong function. We also flip the XFAILs in the API test to reflect what effect this change has. **Testing** * Fixed API tests and added XFAIL Differential Revision: https://reviews.llvm.org/D132231
-
Michael Buch authored
This will be useful in preparation for some reshuffling of assertions in this file since we won't have to adjust the persitent variable names during the process. sed commands: ``` s/expect("expr -- /expect_expr("/g s/startstr="(int) [$0-9]* = /result_type="int", result_value="/g ``` **Testing** * API tests still pass Differential Revision: https://reviews.llvm.org/D132271 -
Florian Hahn authored
Test cases for using the backedge-taken-count to rule out dependencies between an invariant and strided accesses.
-
isuckatcs authored
This patch makes it possible for lambdas, implicit copy/move ctors and structured bindings to handle non-POD multidimensional arrays. Differential Revision: https://reviews.llvm.org/D131840
-
Martin Storsjö authored
-
David Green authored
A fixed length SK_Splice shuffle vector is lowered to a Ext under AArch64, which should have a cost of 1. Differential Revision: https://reviews.llvm.org/D132299
-
Simon Pilgrim authored
-
isuckatcs authored
Prior to this patch we handled lambda captures based on their initializer expression, which resulted in pattern matching. With C++17 copy elision the initializer expression can be anything, and this approach proved to be fragile and a source of crashes. This patch removes pattern matching and only checks whether the object is under construction or not. Differential Revision: https://reviews.llvm.org/D131944
-
Guillaume Chatelet authored
-
Simon Pilgrim authored
These are currently recognised as SK_PermuteTwoSrc
-
Guillaume Chatelet authored
-
Goran Flegar authored
Add fixes for https://reviews.llvm.org/D131747
-
Emmmer authored
Using GetTargetArchitecture() instead of m_target_arch, and set m_target_arch to private. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D132353
-
Guillaume Chatelet authored
-
David Green authored
-
Simon Pilgrim authored
SK_Splice should be equivalent to a PALIGNR instruction etc. - but as discussed on D132308, until full fixed vector support for SK_Splice is in place, just assume its a SK_PermuteTwoSrc.
-
Guillaume Chatelet authored
-
Kadir Cetinkaya authored
-
Florian Hahn authored
Make some tests a bit more robust with respect to future changes.
-
Christian Sigg authored
Previously, `arith.constant`, `arith.muli` and `affine.min` were supported when deriving upper loop bounds when converting parallel loops to GPU. Reviewed By: akuegel Differential Revision: https://reviews.llvm.org/D132354
-
Valentin Clement authored
D131585 Adds couple of semantics check for the components of BIND(C) derived-type. This would raise an error when a component is of C_PTR type. Add `bind(c)` to the `__builtin_c_ptr` type so the wrong error is not triggered. Reviewed By: peixin, jeanPerier Differential Revision: https://reviews.llvm.org/D132350
-
Guillaume Chatelet authored
-
Victor Campos authored
Check ScopedPrinter pointer before attempting to print the attribute's parsed information. Patch by Michael Platings and Victor Campos Reviewed By: pratlucas Differential Revision: https://reviews.llvm.org/D132214
-