- Feb 07, 2022
-
-
Nikita Popov authored
-
Valentin Clement authored
Handle character constant ofr error code in the STOP statement. Depends on D118992 This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan, schweitz Differential Revision: https://reviews.llvm.org/D118993
-
Valentin Clement authored
Lower character constant of KIND = 1 with the `createStringLiteral` helper function. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan, schweitz Differential Revision: https://reviews.llvm.org/D118992
-
Nikita Popov authored
We should make sure that the value ID is in bounds, otherwise we will assert / read out of bounds.
-
Nikita Popov authored
Instead of simply assuming that it will be zero. I double checked that the bitstream reader doesn't have any special handling for all-zero blobs, it will always write out the full contents.
-
Nikita Popov authored
Report an error instead.
-
Nikita Popov authored
If we're trying to reserve more memory than bits in the stream, reject this early to avoid OOM.
-
Valentin Clement authored
AbstractConverter private variable is currently not used and triggers a buildbot failure. https://lab.llvm.org/buildbot/#/builders/180/builds/3119 This fixes the buildbot.
-
Sven van Haastregt authored
For most builtins, `__purefn` always comes after `__ovld`, but the read_image functions did not follow this pattern.
-
Igor Kirillov authored
Differential Revision: https://reviews.llvm.org/D118988
-
Dimitry Andric authored
Similar to 60cc1d32 for NetBSD, add aliases and interceptors for the following pthread related functions: - pthread_cond_init(3) - pthread_cond_destroy(3) - pthread_cond_signal(3) - pthread_cond_broadcast(3) - pthread_cond_wait(3) - pthread_mutex_init(3) - pthread_mutex_destroy(3) - pthread_mutex_lock(3) - pthread_mutex_trylock(3) - pthread_mutex_unlock(3) - pthread_rwlock_init(3) - pthread_rwlock_destroy(3) - pthread_rwlock_rdlock(3) - pthread_rwlock_tryrdlock(3) - pthread_rwlock_wrlock(3) - pthread_rwlock_trywrlock(3) - pthread_rwlock_unlock(3) - pthread_once(3) - pthread_sigmask(3) In FreeBSD's libc, a number of internal aliases of the pthread functions are invoked, typically with an additional prefixed underscore, e.g. _pthread_cond_init() and so on. ThreadSanitizer needs to intercept these aliases too, otherwise some false positive reports about data races might be produced. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D119034
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Tidier solution to the unused variable warnings - we already do this in other places in this file.
-
Zi Xuan Wu authored
There are kinds of inline asm constraints and corresponding register class or register as following. 'b': mGPRRegClass 'v': sGPRRegClass 'w': sFPR32RegClass or sFPR64RegClass 'c': C register 'z': R14 register 'h': HI register 'l': LO register 'y': HI or LO register It also adds codegen test for inline-asm including constraints, clobbers and abi names.
-
Simon Pilgrim authored
Add PR41749 test coverage
-
Djordje Todorovic authored
-
Nikita Popov authored
Avoid report_fatal_error(), propagate the error upwards instead.
-
Nikita Popov authored
Inspired by the discussion on D118694, this adds a straightforward fuzzer for bitcode reading. Currently it will very quickly run into OOM, because we do unconditional vector reservations with user-provided sizes.
-
Brad Smith authored
Similar to D116843 for Gnu.cpp Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119071
-
Mariya Podchishchaeva authored
Reviewed By: bader Differential Revision: https://reviews.llvm.org/D118935
-
Djordje Todorovic authored
-
Djordje Todorovic authored
A variable was used within assert() only.
-
Valentin Clement authored
Depends on D118978. Differential Revision: https://reviews.llvm.org/D118982
-
Valentin Clement authored
This patch add lowering for simple local variable. - The signatures in `ConvertType.h` have been simplified to take advantage of the `AbstractConverter`. - The lowering make use of the `allocateLocal` from the `FirOpBuilder`. This lowering is used in patch D118982 This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan, jeanPerier, schweitz Differential Revision: https://reviews.llvm.org/D118978
-
Luo, Yuanke authored
-
Jun Zhang authored
Use range base loop loop to improve code readability. Differential Revision: https://reviews.llvm.org/D119103
-
luxufan authored
In D116573, the relocation behavior of R_RISCV_BRANCH didn't consider that branch instruction like 'bge' has a branch target address which is given as a PC-relative offset, sign-extend and multiplied by 2. Although the target address is a 12-bits number, acctually its range is [-4096, 4094]. This patch fix it. Differential Revision: https://reviews.llvm.org/D118151
-
Kazu Hirata authored
-
Chuanqi Xu authored
-
zhongyunde 00443407 authored
Enhance to fold csel into csinc instruction. Fix https://github.com/llvm/llvm-project/issues/53071 Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D116915
-
Phoebe Wang authored
-
Jacques Pienaar authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Benjamin Kramer authored
This is both more efficient and more ergonomic to use, as inverting a bit vector is trivial while inverting a set is annoying. Sadly this leaks into a bunch of APIs downstream, so adapt them as well. This would be NFC, but there is an ordering dependency in MemRefOps's computeMemRefRankReductionMask. This is now deterministic, previously it was dependent on SmallDenseSet's unspecified iteration order. Differential Revision: https://reviews.llvm.org/D119076
-
River Riddle authored
-
Stella Laurenzo authored
-
River Riddle authored
This dialect is intended to model lower level/branch based control-flow constructs. The initial set of operations are: AssertOp, BranchOp, CondBranchOp, SwitchOp; all split out from the current standard dialect. See https://discourse.llvm.org/t/standard-dialect-the-final-chapter/6061 Differential Revision: https://reviews.llvm.org/D118966
-