- Nov 17, 2020
-
-
Nathan James authored
Simplifies code in some places and is more explicit about what is being used. No additional includes were added here so no impact on compile time.
-
Simon Pilgrim authored
We typically use X32 for gnux32 triples
-
Simon Pilgrim authored
We typically use X32 for gnux32 triples
-
Simon Pilgrim authored
We typically use X32 for gnux32 triples
-
Simon Pilgrim authored
We typically use X32 for gnux32 triples
-
Simon Pilgrim authored
AddCXXStdlibLibArgs args were using the names for the clang equivalent methods. Silences cppcheck warnings.
-
Muhammad Omair Javaid authored
This moves in the direction of our effort to synchronize register descriptions between LLDB and GDB xml description. We want to able to send registers in a way that their offset fields can be re-constructed based on register sizes in the increasing order of register number. In context to Arm64 SVE, FPCR and FPSR are same registers in FPU regset and SVE regset. Previously FPSR/FPCR offset was set at the end of SVE data because Linux ptrace data placed FPCR and FPSR at the end of SVE register set. Considering interoperability with other stubs like QEMU and that g packets should generate register data in increasing order of register numbers. We have to move FPCR/FPSR offset up to its original location according to register numbering scheme of ARM64 registers with SVE registers included. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D90741
-
Luke Drummond authored
A common routine is to have the compiler crash, and attempt to rerun the cc1 command-line by copying and pasting the arguments printed by `llvm::Support::PrettyStackProgram::print`. However, these arguments are not quoted or escaped which means they must be manually edited before working correctly. This patch ensures that shell-unfriendly characters are C-escaped, and arguments with spaces are double-quoted reducing the frustration of running cc1 inside a debugger. As the quoting is C, this is "best effort for most shells", but should be fine for at least bash, zsh, csh, and cmd.exe. Reviewed by: jhenderson Differential Revision: https://reviews.llvm.org/D90759
-
Muhammad Omair Javaid authored
In our recent discussion we are aiming to make LLDB registers exchange minimum possible information in qRegisterInfo or XMl register descriptions. For SVE registers, Z registers are catagorized as primary registers and should not have any infomration about any pseudo registers. All pseudo registers should have the information on which primary register they belong to. This patch removes invalidate_regs list from Z registers and will mitigate its impact on SVE resize patch in a follow up update. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D91057
-
Florian Hahn authored
This patch uses the new `getMnemonic` helper from D90039 to display mnemonics instead of the internal opcodes. The main motivation behind using the mnemonics is that they are more user-friendly and more directly related to the assembly the users will be presented. Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D90040
-
Sven van Haastregt authored
opencl-c.h disables all extensions at its end, but opencl-c-base.h does not, and that causes any inclusion of only opencl-c-base.h to leave some extensions (such as cl_khr_fp16) enabled. This affects the -fdeclare-opencl-builtins option for example. This violates the OpenCL Extension Specification which specifies that "The initial state of the compiler is as if the directive #pragma OPENCL EXTENSION all : disable was issued". Fix by disabling all extensions at the end of opencl-c-base.h and enable extensions inside opencl.h which relied on opencl-c-base.h enabling the cl_khr_fp16/64 extensions. Differential Revision: https://reviews.llvm.org/D91429
-
Serge Guelton authored
-
Alex Zinenko authored
In ODS, attributes of an operation can be provided as a part of the "arguments" field, together with operands. Such attributes are accepted by the op builder and have accessors generated. Implement similar functionality for ODS-generated op-specific Python bindings: the `__init__` method now accepts arguments together with operands, in the same order as in the ODS `arguments` field; the instance properties are introduced to OpView classes to access the attributes. This initial implementation accepts and returns instances of the corresponding attribute class, and not the underlying values since the mapping scheme of the value types between C++, C and Python is not yet clear. Default-valued attributes are not supported as that would require Python to be able to parse C++ literals. Since attributes in ODS are tightely related to the actual C++ type system, provide a separate Tablegen file with the mapping between ODS storage type for attributes (typically, the underlying C++ attribute class), and the corresponding class name. So far, this might look unnecessary since all names match exactly, but this is not necessarily the cases for non-standard, out-of-tree attributes, which may also be placed in non-default namespaces or Python modules. This also allows out-of-tree users to generate Python bindings without having to modify the bindings generator itself. Storage type was preferred over the Tablegen "def" of the attribute class because ODS essentially encodes attribute _constraints_ rather than classes, e.g. there may be many Tablegen "def"s in the ODS that correspond to the same attribute type with additional constraints The presence of the explicit mapping requires the change in the .td file structure: instead of just calling the bindings generator directly on the main ODS file of the dialect, it becomes necessary to create a new file that includes the main ODS file of the dialect and provides the mapping for attribute types. Arguably, this approach offers better separability of the Python bindings in the build system as the main dialect no longer needs to know that it is being processed by the bindings generator. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D91542
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D91601
-
Kazushi (Jam) Marukawa authored
Add vbrd intrinsic instructions and a regression test. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D91569
-
Ben Shi authored
Reviewed By: dylanmckay Differential Revision: https://reviews.llvm.org/D88658
-
Florian Hahn authored
This patch factors out the part of printInstruction that gets the mnemonic string for a given MCInst. This is intended to be used subsequently for the instruction-mix remarks to display the final mnemonic (D90040). Unfortunately making `getMnemonic` available to the AsmPrinter seems to require making it virtual. Not sure if there's a way around that with the current layering of the AsmPrinters. Reviewed By: Paul-C-Anagnostopoulos Differential Revision: https://reviews.llvm.org/D90039
-
serge-sans-paille authored
Use LINK_COMPONENTS instead of explicit target_link_libraries for components. This avoids redundancy and potential inconsistencies. Differential Revision: https://reviews.llvm.org/D91461
-
Kai Luo authored
-
Haojian Wu authored
-
River Riddle authored
These includes have been deprecated in favor of BuiltinDialect.h, which contains the definitions of ModuleOp and FuncOp. Differential Revision: https://reviews.llvm.org/D91572
-
River Riddle authored
This has been a long standing TODO, and cleans up a bit of IR/. This will also make it easier to move FuncOp out of IR/ at some point in the future. For now, Module.h and Function.h just forward BuiltinDialect.h. These files will be removed in a followup. Differential Revision: https://reviews.llvm.org/D91571
-
Serge Pavlov authored
The option -fproc-stat-report=<file> makes driver to generate child process resource comsumption report. In the report executable name was not quoted and it made parsing the report more difficult. With this change the executable name is surrounded by quotation marks.
-
Yevgeny Rouban authored
When instructions are cloned from block BB to PredBB in the method DuplicateCondBranchOnPHIIntoPred() number of successors of PredBB changes from 1 to number of successors of BB. So we have to copy branch probabilities from BB to PredBB. Reviewed By: Kazu Hirata Differential Revision: https://reviews.llvm.org/D90841
-
Max Kazantsev authored
-
Jonas Devlieghere authored
Compute the real addresses and offsets for the json crashlog test.
-
Max Kazantsev authored
-
Ta-Wei Tu authored
Add RUN lines for NPM of -slsr tests that require -separate-const-offset-from-gep Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D91588
-
Ta-Wei Tu authored
Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D91587
-
Kazu Hirata authored
-
Max Kazantsev authored
-
Kazu Hirata authored
-
Esme-Yi authored
-
Arthur Eubanks authored
With a function pass manager, it would insert debuginfo metadata before getting to function passes while processing the pass manager, causing debugify to skip while running the function passes. Skip special passes + verifier + printing passes. Compared to the legacy implementation of -debugify-each, this additionally skips verifier passes. Probably no need to update the legacy version since it will be obsolete soon. This fixes 2 instcombine tests using -debugify-each under NPM. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D91558
-
Mehdi Amini authored
-
Fangrui Song authored
ELFAsmParser: Remove non-SHF_ALLOC or non-executable sections' line info/address ranges contribution for -g I filed the issue https://sourceware.org/bugzilla/show_bug.cgi?id=26850 , which was acknowledged and fixed in GNU binutils 2.36 This patch adds the similar behavior to MC. Reviewed By: #debug-info, dblaikie Differential Revision: https://reviews.llvm.org/D91505
-
Tei Jeong authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D91491
-
Michael Kruse authored
Silence compiler warnings that suggest to add override qualifiers.
-
Wang, Pengfei authored
-
Lang Hames authored
RegisterEHFrames.cpp needs access to the HAVE_REGISTER_FRAME / HAVE_DEREGISTER_FRAME defines. rdar://71458921
-