llvm-project/llvm
Nikita Popov 2fe85dd289 [Attributor] Don't access pointer elem type in constructPointer (NFC)
Splitting this out as the change is non-trivial: The way this code
handled pointer types doesn't really make sense, as GEPs can only
apply an offset to the outermost pointer, but can't drill down
into interior pointer types (which would require dereferencing
memory).

Instead give special treatment to the first (pointer) index.
I've hardcoded it to zero as that's the only way the function is
used right now, but handling non-zero indexes would be
straightforward.

The original goal here was to have an element type for CreateGEP.
2021-03-11 21:36:40 +01:00
..
benchmarks
bindings
cmake Revert "[cmake] Enable -Werror=return-type" 2021-03-10 14:47:08 -08:00
docs [ARM] Improve WLS lowering 2021-03-11 17:56:19 +00:00
examples
include [SamplePGO] Skip inlinee profile scaling for sample loader inlining 2021-03-11 10:18:26 -08:00
lib [Attributor] Don't access pointer elem type in constructPointer (NFC) 2021-03-11 21:36:40 +01:00
projects
resources
runtimes [PR48898][CMake] Support MinGW Toolchain tool sin llvm_ExternalProject_Add 2021-03-02 22:45:05 +01:00
test [InstrProfiling] Generate runtime hook for ELF platforms 2021-03-11 12:29:01 -08:00
tools [Debugify][OriginalDIMode] Export the report into JSON file 2021-03-11 01:11:13 -08:00
unittests [UnitTests] Remove uses of deprecated CreateLoad() API 2021-03-11 19:05:53 +01:00
utils [gn build] Port 5433a79176 2021-03-11 18:35:32 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT [M68k][CODE_OWNERS](0/8) Add code owner for the M68k target 2021-03-08 12:30:56 -08:00
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

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

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.