Go to file
Yaxun Liu c00d81e697 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
clang Revert "CodeGen: annotate ObjC ARC functions with ABI constraints" 2018-01-30 20:19:34 +00:00
clang-tools-extra [clangd] Trace code completion. 2018-01-30 17:20:54 +00:00
compiler-rt [sanitizer] Add interceptors for readlinkat, name_to_handle_at, open_by_handle_at 2018-01-30 22:22:12 +00:00
debuginfo-tests [debuginfo-tests] Support moving debuginfo-tests to llvm/projects 2017-12-12 16:54:20 +00:00
libclc math.h: Set HAVE_HW_FMA32 based on compiler provided macro 2018-01-29 19:05:08 +00:00
libcxx Add LWG3051 2018-01-30 21:49:17 +00:00
libcxxabi [cmake] [libcxxabi] LLVM_FOUND isn't always set, so just test if 2018-01-27 19:18:04 +00:00
libunwind [cmake] [libunwind] LLVM_FOUND isn't always set, so just test if 2018-01-27 19:31:44 +00:00
lld Fix lit substitution in test. 2018-01-30 21:39:10 +00:00
lldb XUnit Formatter: Handle UTF-8 decode errors on invalid XML 2018-01-30 21:16:42 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm LLParser: add an argument for overriding data layout and do not check alloca addr space 2018-01-30 22:32:39 +00:00
openmp [libomptarget] Check for library with CUDA Driver API 2018-01-30 16:49:13 +00:00
parallel-libs
polly Change memcpy/memove/memset to have dest and source alignment attributes. 2018-01-28 18:13:57 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.