llvm-project
llvm-project copied to clipboard
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
The program which triggers assertion failure: ```cpp void f(float a) { asm("" : "=@ccc"(a)); } ``` Verification link https://gcc.godbolt.org/z/o3M9bsjK6 The output of `clangtk`: ```console clang: /root/llvm-project/llvm/include/llvm/Support/Casting.h:578: decltype(auto) llvm::cast(From*) [with To...
**Steps to reproduce** In my `.clang-format` file, I have ```yml ColumnLimit: 120 PackConstructorInitializers: CurrentLine ``` With this, the following code: ```cpp Watcher::Watcher(const fs::path& path, const WatchdogCallback& callback) : mPath(path), mCallback(callback)...
The bug triggering testcase: ```cpp #include #include typedef enum omp_allocator_handle_t : uintptr_t { omp_default_mem_alloc = 1, } omp_allocator_handle_t; int r, bar(int, int *, int); void foo(void) { #pragma omp taskgroup...
When compile below program with `clangtk` using option `-O0`, `clangtk` triggers assertion failure: ```cpp int a(void) { short *b = __builtin_assume_aligned(0, 8); for (int i = 0; i < (16...
The bug triggering program: ```cpp void b(long a) { asm volatile("" :: "r"(a) : "x10"); } ``` When compile it using `clangtk` with option `-O0 -fopenmp-simd`, `clangtk` triggers assertion failure,...
[RISCV] Store multiple value to same memory address when calling llvm.bitreverse.nxv2i64 intrinsic
When running following case with attribute `-march=rv32imacv`: ```ll declare @llvm.bitreverse.nxv2i64() define i32 @main() { %1 = insertelement zeroinitializer, i64 3, i64 3 %2 = tail call @llvm.bitreverse.nxv2i64( %1) %3 =...
Compiling with `ninja install-libc` err: ```console [2/18] Building CXX object projects/libc/src/wchar/CMakeFiles/libc.src.wchar.wctob.dir/wctob.cpp.o FAILED: projects/libc/src/wchar/CMakeFiles/libc.src.wchar.wctob.dir/wctob.cpp.o /usr/lib/llvm/16/bin/clang++-16 --config=/etc/clang/abi-breaking-shit.cfg -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/llvm-project/build-libc-full/projects/libc/src/wchar -I/llvm-project/libc/src/wchar -I/llvm-project/build-libc-full/include -I/llvm-project/llvm/include -I/llvm-project/build-libc-full/projects/libc/include -I/llvm-project/libc -I/llvm-project/build-libc-full/projects/libc -fPIC -fno-semantic-interposition...
According to [MSDN](https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros) `__FUNCDNAME__`, `__FUNCSIG__`, and `__FUNCTION__` are non-expandible macros defined as string literals. So, they may be concatenated with other string literals ([Compiler Explorer link](https://godbolt.org/z/eM9P1crMz)): ```cpp extern "C" int...
| | | | --- | --- | | Bugzilla Link | [21690](https://llvm.org/bz21690) | | Version | trunk | | OS | Linux | | Reporter | LLVM Bugzilla Contributor...