User Details
- User Since
- Sep 4 2015, 4:18 PM (393 w, 6 d)
Fri, Mar 17
Thu, Mar 16
Much neater than my initial suggestion. LGTM
Wed, Mar 15
Minor suggestions, feel free to ignore.
Thu, Mar 9
Wed, Mar 8
Tue, Mar 7
Will fix the outstanding issues and commit tomorrow. Thanks for reviewing and testing.
Mon, Mar 6
fix typo
Drop APPLE special case
Fix bfloat16 case
Thanks, LGTM
Also handle bfloat16 (didn't notice this before since I was building with clang 14)
Fri, Mar 3
Thanks for working on this! How bad is the test diff if you remove the hardcoded --version=1 from lit.local.cfg?
I believe D145237 fixes the issue.
I've managed to reproduce this error on Linux, it turns out the real problem is that these checks are being done once even though the library is built multiple times with differing flags. I think the only way to fix this issue is to actually start using ExternalProject_Add (or adding an ARCH prefix for all the checks).
cmake -GNinja -S compiler-rt/lib/builtins -B cmake-build-builtins -DLLVM_CONFIG_PATH=NOTFOUND -DCMAKE_DISABLE_FIND_PACKAGE_LLVM=TRUE && ninja -C cmake-build-builtins
Wed, Mar 1
@emaste it looks like you landed an older diff?
Tue, Feb 28
LGTM
Thu, Feb 23
I would check the output of the no longer crashing tests but otherwise LGTM. Please wait for @arsenm to confirm as well before committing though.
The __builtin_align_{up,down} code generation could also make use of this IIRC. I think the reason I didn't do this initially was concerns about ptrmask not being optimized as well.
Wed, Feb 22
Feb 21 2023
Thanks for fixing a hardcoded AS 0! Code change looks correct to me but the test case can be reduced further.
Feb 20 2023
Feb 17 2023
I am almost certain backtrace() does work on FreeBSD, so there should be a __linux__ check as well.
The comment says it only exists on glibc systems, but on FreeBSD libexecinfo provides this functionality.
Feb 16 2023
Feb 9 2023
Feb 8 2023
Feb 7 2023
Thanks for this patch! In the CHERI fork I added a rather ugly workaround in getIngPtrType() for this instead of updating all callers (https://github.com/CTSRD-CHERI/llvm-project/blob/19d402e23fcaa197e1d40547da403dc17e13c7ae/llvm/lib/IR/DataLayout.cpp#L862). I will try applying the patch to CHERI LLVM to see if there are any further places that need updating.
Jan 27 2023
Jan 26 2023
Jan 24 2023
It sounds to me that the logic from b919c7d should have been restricted to actual LLVM intrinsics that are overloaded on the pointer args ( e.g. llvm.memcpy which was the test in that commit). Builtins that are just library calls with known semantics probably need the cast even for opencl?
I like this approach, it's a lot less hacky than my attempt to default function signatures to on. I'll rebase that to check for version>1 instead.
Using __LP64__ means we won't use umtx for CHERI architectures. Can we change this to __SIZEOF_LONG__ == 8?
Jan 13 2023
Looks like this is obsolete now that D140985 landed, will rebase the remaining patch stack.
The difference in codegen is rather surprising, but looking at the diffs they are all semantically the same.
Jan 8 2023
Jan 7 2023
Jan 6 2023
This commit breaks the build for me (and some of the buildbots): https://lab.llvm.org/buildbot/#/builders/16/builds/41419/steps/5/logs/stdio
Jan 5 2023
Haven't updated all tests this affects yet, wanted to check if this is an acceptable change before spending more time on it.
Found using D141060
Jan 3 2023
Rebase, fix unsused variable.
Dec 23 2022
Looks like I was too slow - already committed as rG5b97612a11e88c5a035611a824479490b22c9905
Dec 22 2022
This fix should hopefully be correct, but opening a review in case there is something else that I need to change.
Dec 21 2022
rebase for CI
Rebase and update version guard to macos 10.15
Dec 19 2022
Seeing as there are around 300 tests inside llvm/ that use --function-signature and 200+ in clang/, maybe this needs a "only for new tests" workaround such as D140212.
The other option would be to bulk-update all affected tests once this lands, but I'm not sure how the maintainers of the affected tests feel about this.
Dec 17 2022
Dec 16 2022
I like the idea of defaulting to --function-signature for new tests a lot, so I've implemented that in D140212
Dec 15 2022
Dec 13 2022
As this is a rather simple cleanup, I'll go ahead and merge this next week unless there is any objection until then.
Dec 9 2022
rebase