llvm with tablegen backend for capstone disassembler
Go to file
Timm Bäder 6dfe55569d [clang][Interp] Rework initializers
Before this patch, we had visitRecordInitializer() and
visitArrayInitializer(), which were different from the regular visit()
in that they expected a pointer on the top of the stack, which they
initialized. For example, visitArrayInitializer handled InitListExprs by
looping over the members and initializing the elements of that pointer.

However, this had a few corner cases and problems. For example, in
visitLambdaExpr() (a lambda is always of record type), it was not clear
whether we should always create a new local variable to save the lambda
to, or not. This is why https://reviews.llvm.org/D153616 changed
things around.

This patch changes the visiting functions to:

 - visit(): Always leaves a new value on the stack. If the expression
   can be mapped to a primitive type, it's just visited and the value is
   put on the stack. If it's of composite type, this function will
   create a local variable for the expression value and call
   visitInitializer(). The pointer to the local variable will stay on
   the stack.

 - visitInitializer(): Visits the given expression, assuming there is a
   pointer on top of the stack that will be initialized by it.

 - discard(): Visit the expression for side-effects, but don't leave a
   value on the stack.

It also adds an additional Initializing flag to differentiate between the initializing and non-initializing case.

Differential Revision: https://reviews.llvm.org/D156027
2023-08-20 13:33:08 +02:00
.ci [ci] Make libc++ and Clang CI scripts independent 2023-07-12 14:01:38 -04:00
.github/workflows [Workflow] Run the repository sync script from GH. 2023-08-10 09:01:18 +02:00
bolt bolt/test/X86/bug-function-layout-execount.s: Require x86 and asserts 2023-08-18 14:02:05 +02:00
clang [clang][Interp] Rework initializers 2023-08-20 13:33:08 +02:00
clang-tools-extra [clangd] Modernize SymbolLocation::Position (NFC) 2023-08-19 00:27:08 -07:00
cmake [CMake] Switch the CMP0091 policy (MSVC_RUNTIME_LIBRARY) to the new behaviour 2023-07-17 09:59:05 +03:00
compiler-rt [ubsan][test] Fix a typo: target= instead of TARGET= 2023-08-18 16:14:44 -07:00
cross-project-tests [Dexter] XFAIL Dexter tests for Apple Silicon (arm64) 2023-05-26 15:43:20 -07:00
flang [flang] Add PowerPC vec_lxv, vec_lvsl, vec_lvsr, vec_xl, vec_xl_be and vec_xlds intrinsic 2023-08-18 15:02:15 -04:00
libc Fx typos in documentation 2023-08-18 23:36:04 -07:00
libclc Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
libcxx [libc++][NFC] Remove __has_keyword 2023-08-19 15:46:13 -07:00
libcxxabi [libc++] Fix a few incorrect CMake configuration options 2023-08-17 09:43:09 -04:00
libunwind MIPS: unwind, don't save/restore hi/lo for R6 2023-08-19 00:35:25 -04:00
lld Reland "[lld] Preliminary fat-lto-object support" 2023-08-18 22:51:25 +00:00
lldb Fx typos in documentation 2023-08-18 23:36:04 -07:00
llvm [AVR][BPF][Lanai][Xtensa] Replace OperandMatchResultTy with ParseStatus (NFC) 2023-08-20 14:20:28 +03:00
llvm-libgcc Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
mlir [mlir][NFC] Split OpBase.td into multiple smaller units 2023-08-19 22:19:39 +05:30
openmp Fx typos in documentation 2023-08-18 23:36:04 -07:00
polly Headers for basic blocks in CFG dot graphs 2023-08-17 07:55:23 -07:00
pstl Clear release notes for 18.x 2023-07-25 13:58:49 +02:00
runtimes Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
third-party [unittest] teach gTest to print entries of DenseMap as pairs 2023-06-28 11:29:52 +02:00
utils [bazel] Make transitive OpBase.td inclusions visible to pdll tests 2023-08-19 20:02:02 +02:00
.arcconfig
.arclint
.clang-format
.clang-tidy Add -misc-use-anonymous-namespace to .clang-tidy 2023-05-06 02:33:20 +03:00
.git-blame-ignore-revs Revert "[mlir][spirv] Add D155747 to .git-blame-ignore-revs" 2023-07-21 10:59:16 -04:00
.gitignore
.mailmap Add entry to mailmap 2023-04-25 23:15:07 -07:00
CONTRIBUTING.md Added instruction to join the llvm discourse and discord group. 2023-03-27 17:02:07 -07:00
LICENSE.TXT
README.md [docs] Update README and GettingStarted 2023-03-08 12:55:59 -08:00
SECURITY.md

The LLVM Compiler Infrastructure

Welcome to the LLVM project!

This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.

The LLVM project has multiple components. The core of the project is itself called "LLVM". This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.

C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.

Other components include: the libc++ C++ standard library, the LLD linker, and more.

Getting the Source Code and Building LLVM

Consult the Getting Started with LLVM page for information on building and running LLVM.

For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.

Getting in touch

Join the LLVM Discourse forums, Discord chat, or #llvm IRC channel on OFTC.

The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.