- Jun 20, 2020
-
-
Raphael Isemann authored
Summary: TerminalSizeChanged is called from our SIGWINCH signal handler but the IOHandlerEditline currently doesn't check if we are actually using the real editline backend. If we're not using the real editline backend, `m_editline_up` won't be set and `IOHandlerEditline::TerminalSizeChanged` will access the empty unique_ptr. In a real use case we don't use the editline backend when we for example read input from a file. We also create some temporary IOHandlerEditline's during LLDB startup it seems that are also treated as non-interactive (apparently to read startup commands). This patch just adds a nullptr check for`m_editline_up` as we do in the rest of IOHandlerEditline. Fixes rdar://problem/63921950 Reviewers: labath, friss Reviewed By: friss Subscribers: abidh, JDevlieghere Differential Revision: https://reviews.llvm.org/D81729
-
Lang Hames authored
This relaxes an assertion that required symbols to start before the end of a block. Instead, symbols are now required to end on or before the end of a block. This fixes two important corner cases: Symbols at the start of empty blocks/sections, and block/section end symbols.
-
Lang Hames authored
This can be helpful for sanity checking JITLink memory manager behavior.
-
Adrian Prantl authored
and delete a bunch (but not all) redundant code. If you compare the remaining implementations of Platform*Simulator.cpp, there is still an obvious leftover cleanup task. Specifically, this patch - removes SDK initialization from dotest (there is equivalent but more complete code in Makefile.rules) - make Platform*Simulator inherit the generic implementation of PlatformAppleSimulator (more can be done here) - simplify the platform logic in Makefile.rules - replace the custom SDK finding logic in Platform*Simulator with XcodeSDK - adds a test for each supported simulator Differential Revision: https://reviews.llvm.org/D81980
-
Raphael Isemann authored
The tests fail to compile there: ``` complex/main.c:4:16: error: expected ';' at end of declaration float complex complex_float = -1.5f + -2.5f * I; ^ ; ``` -
Sanjay Patel authored
This is a variation of the proposal in D82049 with an extra test.
-
Fangrui Song authored
If neither AT(lma) nor AT>lma_region is specified, D76995 keeps `lmaOffset` (LMA - VMA) if the previous section is in the default LMA region. This patch additionally checks that the two sections are in the same memory region. Add a test case derived from https://bugs.llvm.org/show_bug.cgi?id=45313 .mdata : AT(0xfb01000) { *(.data); } > TCM // It is odd to make .bss inherit lmaOffset, because the two sections // are in different memory regions. .bss : { *(.bss) } > DDR With this patch, section VMA/LMA match GNU ld. Note, GNU ld supports out-of-order (w.r.t sh_offset) sections and places .text and .bss in the same PT_LOAD. We don't have that behavior. Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D81986
-
peter klausler authored
Rolls up small changes across the frontend to prepare for the large forthcoming patch (part 4/4) that completes DATA statement processing via conversion to initializers. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D82137
-
Fangrui Song authored
[ELF] Refactor ObjFile<ELFT>::initializeSymbols to enforce the invariant: InputFile::symbols has non null entry Fixes PR46348. ObjFile<ELFT>::initializeSymbols contains two symbol iteration loops: ``` for each symbol if non-inheriting && non-local fill in this->symbols[i] for each symbol if local fill in this->symbols[i] else symbol resolution ``` Symbol resolution can trigger a duplicate symbol error which will call InputSectionBase::getObjMsg to iterate over InputFile::symbols. If a non-local symbol appears after the non-local symbol being resolved (violating ELF spec), its `this->symbols[i]` entry has not been filled in, InputSectionBase::getObjMsg will crash due to `dyn_cast<Defined>(nullptr)`. To fix the bug, reorganize the two loops to ensure this->symbols is complete before symbol resolution. This enforces the invariant: InputFile::symbols has none null entry when InputFile::getSymbols() is called. ``` for each symbol if non-inheriting fill in this->symbols[i] for each symbol starting from firstGlobal if non-local symbol resolution ``` Additionally, move the (non-local symbol in local part of .symtab) diagnostic from Writer<ELFT>::copyLocalSymbols() to initializeSymbols(). Reviewed By: grimar, jhenderson Differential Revision: https://reviews.llvm.org/D81988 -
Stanislav Mekhanoshin authored
-
- Jun 19, 2020
-
-
Raphael Isemann authored
On the buildbot long and int have the same size but long and long long don't, so the bug where we find the first type by size will produce a different error. Make the test dynamic based on int/long/long long size to fix the bot.
-
Frederik Gossen authored
Lower `shape.shape_of` to standard dialect. This lowering supports statically and dynamically shaped tensors. Support for unranked tensors will be added as part of the lowering to `scf`. Differential Revision: https://reviews.llvm.org/D82098
-
Thomas Preud'homme authored
This reverts commit cd2553de.
-
Raul Tambre authored
Similar to <concepts>, we need to protect the header and test against inclusion and being run if concepts aren't supported by the compiler. Differential Revision: https://reviews.llvm.org/D82171
-
Piotr Sobczak authored
This caused some failures detected by the buildbot with expensive checks enabled. This reverts commit 4067de56.
-
Stephan Herhut authored
Summary: With this change, a function argument attribute of the form "llvm.align" = <int> will be translated to the corresponding align attribute in LLVM by the ModuleConversion. Differential Revision: https://reviews.llvm.org/D82161
-
Raphael Isemann authored
-
Jay Foad authored
-
dfukalov authored
Summary: The estimation uses AMDGPUTargetLowering::isFNegFree() Reviewers: rampitec Reviewed By: rampitec Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82065
-
Simon Pilgrim authored
-
Raphael Isemann authored
LLDB has a lot of code for supporting complex types but we don't have a single test for it. This adds some basic tests and documents the found bugs.
-
Piotr Sobczak authored
Summary: Add patterns to select s_cselect in the isel. Handle more cases of implicit SCC accesses in si-fix-sgpr-copies to allow new patterns to work. Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, asbirlea, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81925
-
Sjoerd Meijer authored
Renamed -force-tail-predication to -force-mve-tail-predication because that's more descriptive and consistent.
-
Mikhail Maltsev authored
Reviewers: labrinea, dmgreen, pratlucas, LukeGeeson Reviewed By: dmgreen Subscribers: kristof.beyls, hiraditya, danielkiss, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81486
-
Thomas Preud'homme authored
Summary: Factor out repetetitive code into helper function and split massive ExpressionFormat method test into separate test for each method, removing dead code in passing. Also add a MinInt64 and MaxInt64 checks when testing getMatchingString. Reviewers: jhenderson, jdenny, probinson, grimar, arichardson Reviewed By: jhenderson, grimar Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82132
-
Dmitry Preobrazhensky authored
Updated tests disabled by change 5f5f566b. https://github.com/llvm/llvm-project/commit/5f5f566b265db00f577ead268400d99f34ba9cdd
-
Simon Pilgrim authored
-
Mikhail Maltsev authored
This patch adds codegen for the following BFloat operations to the ARM backend: * concatenation of bf16 vectors * bf16 vector element extraction * bf16 vector element insertion * duplication of a bf16 value into each lane of a vector * duplication of a bf16 vector lane into each lane Differential Revision: https://reviews.llvm.org/D81411
-
Bruno Ricci authored
The outputs between the direct ast-dump test and the ast-dump test after deserialization should match modulo a few differences. For hand-written tests, strip the "<undeserialized declarations>"s and the "imported"s with sed. For tests generated with "make-ast-dump-check.sh", regenerate the output. Part 1/n.
-
Bruno Ricci authored
Some AST dump tests have no "line:" at all. See "ast-dump-wchar.cpp" for an example.
-
Xiangling Liao authored
On AIX, we use __atexit to register dtor functions rather than __cxa_atexit. So a driver change is needed to default AIX to using -fno-use-cxa-atexit. Windows platform does not uses __cxa_atexit either. Following its precedent, we remove the assertion for when -fuse-cxa-atexit is specified by the user, do not produce a message and silently default to -fno-use-cxa-atexit behavior. Differential Revision: https://reviews.llvm.org/D82136
-
Xiangling Liao authored
1. Provides no piroirity supoort && disables three priority related attributes: init_priority, ctor attr, dtor attr; 2. '-qunique' in XL compiler equivalent behavior of emitting sinit and sterm functions name using getUniqueModuleId() util function in LLVM (currently no support for InternalLinkage and WeakODRLinkage symbols); 3. Add testcases to emit IR sample with __sinit80000000, __dtor, and __sterm80000000; 4. Temporarily side-steps the need to implement the functionality of llvm.global_ctors and llvm.global_dtors arrays. The uses of that functionality in this patch (with respect to the name of the functions involved) are not representative of how the functionality will be used once implemented. Differential Revision: https://reviews.llvm.org/D74166 -
Nathan James authored
-
Kadir Cetinkaya authored
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D82045
-
Sam McCall authored
Summary: We can't resolve this (if it's a symlink) without further refactoring, but the current behaviour is just incorrect. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82011
-
Georgii Rymar authored
Similar to D81937, we might crash when printing a histogram for a GNU hash table with a 'symndx' index that is larger than the number of dynamic symbols. This patch adopts and reuses the `getGnuHashTableChains()` helper which performs a validation of the table. As a side effect the warning reported for the --gnu-hash-table was improved. Also with this change we start to report a warning when the histogram is requested for the GNU hash table, but the dynamic symbols table is empty (size == 0). Differential revision: https://reviews.llvm.org/D82010
-
Florian Hahn authored
All cases in the test are supported now, it only still failed because an over-eager regex match not accounting for `, align ` being added to each load/store now.
-
Nathan James authored
Extend the `InheritParentConfig` support introduced in D75184 for the command line option `--config`. The current behaviour of `--config` is to when set, disable looking for `.clang-tidy` configuration files. This new behaviour lets you set `InheritParentConfig` to true in the command line to then look for `.clang-tidy` configuration files to be merged with what's been specified on the command line. Reviewed By: DmitryPolukhin Differential Revision: https://reviews.llvm.org/D81949
-
Joachim Protze authored
Adds OMPT support for the mutexinoutset dependency Reviewed by: hbae Differential Revision: https://reviews.llvm.org/D81890
-