- Oct 07, 2021
-
-
Mark de Wever authored
Implements the formatter for Boolean types. [format.formatter.spec]/2.3 For each charT, for each cv-unqualified arithmetic type ArithmeticT other than char, wchar_t, char8_t, char16_t, or char32_t, a specialization ``` template<> struct formatter<ArithmeticT, charT>; ``` This removes the stub implemented in D96664. Implements parts of: - P0645 Text Formatting - P1652 Printf corner cases in std::format Completes: - P1868 width: clarifying units of width and precision in std::format Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D103670
-
Mark de Wever authored
Implements the formatter for all fundamental integer types. [format.formatter.spec]/2.1 The specializations ``` template<> struct formatter<char, char>; template<> struct formatter<char, wchar_t>; template<> struct formatter<wchar_t, wchar_t>; ``` This removes the stub implemented in D96664. Implements parts of: - P0645 Text Formatting Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D103466
-
LLVM GN Syncbot authored
-
Jack Andersen authored
Based on the reasoning of D53903, register operands of DBG_VALUE are invariably treated as RegState::Debug operands. This change enforces this invariant as part of MachineInstr::addOperand so that all passes emit this flag consistently. RegState::Debug is inconsistently set on DBG_VALUE registers throughout LLVM. This runs the risk of a filtering iterator like MachineRegisterInfo::reg_nodbg_iterator to process these operands erroneously when not parsed from MIR sources. This issue was observed in the development of the llvm-mos fork which adds a backend that relies on physical register operands much more than existing targets. Physical RegUnit 0 has the same numeric encoding as $noreg (indicating an undef for DBG_VALUE). Allowing debug operands into the machine scheduler correlates $noreg with RegUnit 0 (i.e. a collision of register numbers with different zero semantics). Eventually, this causes an assert where DBG_VALUE instructions are prohibited from participating in live register ranges. Reviewed By: MatzeB, StephenTozer Differential Revision: https://reviews.llvm.org/D110105
-
Mark de Wever authored
Implements the formatter for all fundamental integer types (except `char`, `wchar_t`, and `bool`). [format.formatter.spec]/2.3 For each charT, for each cv-unqualified arithmetic type ArithmeticT other than char, wchar_t, char8_t, char16_t, or char32_t, a specialization ``` template<> struct formatter<ArithmeticT, charT>; ``` This removes the stub implemented in D96664. As an extension it adds partial support for 128-bit integer types. Implements parts of: - P0645 Text Formatting - P1652 Printf corner cases in std::format Completes: - LWG-3248 #b, #B, #o, #x, and #X presentation types misformat negative numbers Reviewed By: #libc, ldionne, vitaut Differential Revision: https://reviews.llvm.org/D103433
-
LLVM GN Syncbot authored
-
Mark de Wever authored
Implements the formatter for all string types. [format.formatter.spec]/2.2 For each charT, the string type specializations ``` template<> struct formatter<charT*, charT>; template<> struct formatter<const charT*, charT>; template<size_t N> struct formatter<const charT[N], charT>; template<class traits, class Allocator> struct formatter<basic_string<charT, traits, Allocator>, charT>; template<class traits> struct formatter<basic_string_view<charT, traits>, charT>; ``` This removes the stub implemented in D96664. Implements parts of: - P0645 Text Formatting - P1868 width: clarifying units of width and precision in std::format Reviewed By: #libc, ldionne, vitaut Differential Revision: https://reviews.llvm.org/D103425 -
gbreynoo authored
In the command guide --prefix and --prefix-strip is used in the form --prefix=<prefix> however currently it is used in the form --prefix <prefix>. This change fixes these options to match the command guide. Differential Revision: https://reviews.llvm.org/D110551
-
Simon Pilgrim authored
The comparison always checks for negative values so know the icmp predicate will be ICMP_SGT
-
Sanjay Patel authored
We need these to add folds with the same structure as regular commuted logic ops.
-
Sanjay Patel authored
-
Saiyedul Islam authored
This reverts commit 4c411708.
-
Saiyedul Islam authored
This reverts commit 06404d54.
-
Saiyedul Islam authored
This reverts commit 2baf7ad6.
-
Michał Górny authored
Add DynamicRegisterInfo::registers() method that returns llvm::iterator_range<> over RegisterInfos. This is a convenient replacement for GetNumRegisters() + GetRegisterInfoAtIndex(). Differential Revision: https://reviews.llvm.org/D111136
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Matthias Springer authored
The signature of this function was confusing. Check for hasKnownBufferizationAliasingBehavior separately when needed. Differential Revision: https://reviews.llvm.org/D110916
-
Lei Zhang authored
It was bundling quite a lot of patterns that convert high-D vector ops into low-D elementary ops. It might not be good for all of the patterns to happen for a particular downstream user. For example, `ShapeCastOpRewritePattern` rewrites `vector.shape_cast` into data movement extract/insert ops. Instead, split the entry point into multiple ones so users can pull in patterns on demand. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D111225
-
Saiyedul Islam authored
Fixes missing libomptarget on Mac and Windows in check lines. Issue was introduced by D105191. Differential Revision: https://reviews.llvm.org/D111311
-
Matthias Springer authored
Move getInplaceableOpResult() call into bufferizableInPlaceAnalysis. Note: The only goal of this change is to make the signature of bufferizableInPlaceAnalysis smaller. (Fewer arguments.) Differential Revision: https://reviews.llvm.org/D110915
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D110806
-
Eugene Zhulenev authored
Revived https://reviews.llvm.org/D102435 Add alignment attribute to `memref.global` and propagate it to llvm global in memref->llvm lowering Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D111309
-
Michael Forster authored
-
Chen Zheng authored
This is split from https://reviews.llvm.org/D108750. Refactor rewriteLoadStores() so that we can reuse the outlined functions. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D110314
-
David Spickett authored
Missing "global" meant that we set a local "has_run_tests" so the global was False by the time everything has run.
-
David Green authored
Currently when creating tail predicated loops, we need to validate that all the live-outs of a loop will be equivalent with and without tail predication, and if they are not we cannot legally create a tail-predicated loop, leaving expensive vctp and vpst instructions in the loop. These notably can include register-allocation instructions like stack loads and stores, and copys lowered from COPYs to MVE_VORRs. Instead of trying to prove this is valid late in the pipeline, this patch introduces a MQPRCopy pseudo instruction that COPY is lowered to. This can then either be converted to a MVE_VORR where possible, or to a couple of VMOVD instructions if not. This way they do not behave differently within and outside of tail-predications regions, and we can know by construction that they are always valid. The idea is that we can do the same with stack load and stores, converting them to VLDR/VSTR or VLDM/VSTM where required to prove tail predication is always valid. This does unfortunately mean inserting multiple VMOVD instructions, instead of a single MVE_VORR, but my experiments show it to be an improvement in general. Differential Revision: https://reviews.llvm.org/D111048
-
Carl Ritson authored
When propagating undefined copies the undef flag must also be propagated. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D111219
-
Raphael Isemann authored
Just regrouping the checks for the same typedef together and also giving the different typedefs unique names. We might want to have a second test with identical names to see how LLDB handle the potential name conflict, but that should be a separate test and not part of the main typedef test. Also this test is actually unintentionally passing. LLDB can't lookup typedefs in a struct/class scope, but in the test the check passes as the local variable in the expression evaluation scope pulls in the typedef. I added a second check that makes it clear that this is not working right now.
-
Pavel Labath authored
ReadExtFeature provides equivalent functionality. Also fix a but in ReadExtFeature, which prevented it from being used for auxv data (it contains nul characters).
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Jon Chesterfield authored
Follow on to D110006, related to D110957 Where implementations have diverged this resolves to match the new DeviceRTL - replaces definitions of this struct in deviceRTL and plugins with include - changes the dynamic_shared_size field from D110006 to 32 bits - handles stdint being unavailable in DeviceRTL - adds a zero initializer for the field to amdgpu - moves the extern declaration for deviceRTL to target_interface (omptarget.h is more natural, but doesn't work due to include order with debug.h) - Renames the fields everywhere to match the LLVM format used in DeviceRTL - Makes debug_level uint32_t everywhere (previously sometimes int32_t) Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111069
-
Balázs Kéri authored
The code of `ASTImporter::Import(const Attr *)` was repetitive, it is now simplified. (There is still room for improvement but probably only after big changes.) Reviewed By: martong, steakhal Differential Revision: https://reviews.llvm.org/D110810
-
David Green authored
-
David Spickett authored
If you don't have ptrace permissions this test will fail to run silently, this adds a check for that and anything else that might do similar things. The output will now be: ``` FAILED test program did not run correctly, check gdb warnings /usr/bin/gdb: warning: Couldn't determine a path for the index cache directory. No symbol table is loaded. Use the "file" command. warning: Error disabling address space randomization: Operation not permitted warning: Could not trace the inferior process. warning: ptrace: Operation not permitted error: command failed with exit status: 255 ``` We already have a feature to check for a compatible python enabled gdb, so I think it's reasonable to check for this at test runtime. Note that this is different to the catch all at the end of the test script. That would be a case where you can trace but something else made it stop mid way that wasn't our test breakpoints. Reviewed By: saugustine Differential Revision: https://reviews.llvm.org/D110936
-