1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test
Yaxun Liu 8dc80efd4f LLParser: add an argument for overriding data layout and do not check alloca addr space
Sometimes users do not specify data layout in LLVM assembly and let llc set the
data layout by target triple after loading the LLVM assembly.

Currently the parser checks alloca address space no matter whether the LLVM
assembly contains data layout definition, which causes false alarm since the
default data layout does not contain the correct alloca address space.

The parser also calls verifier to check debug info and updating invalid debug
info. Currently there is no way to let the verifier to check debug info only.
If the verifier finds non-debug-info issues the parser will fail.

For llc, the fix is to remove the check of alloca addr space in the parser and
disable updating debug info, and defer the updating of debug info and
verification to be after setting data layout of the IR by target.

For other llvm tools, since they do not override data layout by target but
instead can override data layout by a command line option, an argument for
overriding data layout is added to the parser. In cases where data layout
overriding is necessary for the parser, the data layout can be provided by
command line.

Differential Revision: https://reviews.llvm.org/D41832

llvm-svn: 323826
2018-01-30 22:32:39 +00:00
..
Analysis
Assembler LLParser: add an argument for overriding data layout and do not check alloca addr space 2018-01-30 22:32:39 +00:00
Bindings [LLVM-C] Add Accessors For A Module's Source File Name 2018-01-30 21:34:29 +00:00
Bitcode
BugPoint
CodeGen LLParser: add an argument for overriding data layout and do not check alloca addr space 2018-01-30 22:32:39 +00:00
DebugInfo [DWARF] Recommitting a test that was removed with r323564. Restricted to x86 linux target. 2018-01-30 18:41:31 +00:00
Examples
ExecutionEngine
Feature CodeGen: support an extension to pass linker options on ELF 2018-01-30 16:29:29 +00:00
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MC AMDGPU/SI: Add decoding in the GFX80_UNPACKED decoding namespace. 2018-01-30 16:42:40 +00:00
Object
ObjectYAML
Other Re-commit : [PowerPC] Add handling for ColdCC calling convention and a pass to mark 2018-01-30 16:17:22 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TableGen] Make sure !if is evaluated throughout class inheritance. 2018-01-30 19:29:21 +00:00
ThinLTO/X86 Teach ValueMapper to use ODR uniqued types when available 2018-01-30 20:16:32 +00:00
tools [ThinLTO/gold] Write empty imports even for modules with symbols 2018-01-30 21:19:26 +00:00
Transforms [SLP] Add extra test for extractelement shuffle, NFC. 2018-01-30 21:06:06 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh