llvm-project
llvm-project copied to clipboard
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
LLVM version: 14.0.0 target source code: ```c if (cd->compat_flag == true) { if (copy_from_user(&data_compat, argp, // if.then.i189 sizeof(data_compat))) { return -EFAULT; } } else { if (copy_from_user(&data, argp, // if.then.i...
https://godbolt.org/z/71djY498P Given the following code: ```C void foo(void); static int a, c; static int *b = &a, *d = &c, *g = &a; static char e, h; static short f;...
https://godbolt.org/z/z3d5s1EdY Given the following code: ```C void foo(void); static struct { int b; } f; static int c, d = 3; static int *g = &c; static void h(); static...
Phabricator allows subscribing llvm-commits, cfe-commits, etc., so that new reviews and comments on existing reviews go to the appropriate mailing list(s). How do we achieve the same effect for pull...
The testcase (compiled with clang): ``` void f() { #pragma omp for collapse(UNKNOWN) for (int i = 0; i < 10; ++i); } ``` https://godbolt.org/z/hb7TKb5GY Compilation error: ``` test.c:5:30: error:...
The following IR defines two functions, each of which compiles to a single 2-byte Thumb instruction, but prefixed with a 4-byte KCFI cookie (containing, in this case, a made-up example...
Consider code like: ```c void func1(int i) { if (i || !i) func1(i); } void func2(int i) { if (i > 0 || i
- [x] Submit a feature request to GitHub for this #56635 - [ ] Implement a solution using existing Pull Request functionality.
The same code for C works just fine: https://godbolt.org/z/T3WboYvT3 but fails for C++: https://godbolt.org/z/aKP38aTqd ```cpp #include #define p27_26 (0b11) #define p11_7 (0b11111) void test_sf_vc_xv_se_u64m1(vuint64m1_t vs2, uint64_t rs1, size_t vl) {...
Consider the following code: ```c++ int main( int argc, char** argv ) { if( auto unused = argc > 1 ) { int alsoUnused = 0; } } ``` Both...