- Jan 19, 2022
-
-
Louis Dionne authored
It should now work since the Clang on CI nodes has been updated. Differential Revision: https://reviews.llvm.org/D115256
-
Michael Gottesman authored
I based this off of the API already create for llvm.dbg.value since both intrinsics have the same arguments at the API level. I added some tests exercising the API a little as well as an additional small test that shows how one can use llvm.dbg.addr to limit the PC range where an address value is available in the debugger. This is done by calling llvm.dbg.value with undef and the same metadata info as one used to create the llvm.dbg.addr. rdar://83957028 Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D117442
-
Hongtao Yu authored
Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D117141
-
Daniel Thornburgh authored
-
Chuanqi Xu authored
It is a known problem that we can't align the switch-based coroutine frame if the alignment exceeds std::max_align_t (which is 16 usually). We could solve the problem on the middle-end by dynamically transforming or in the frontend by emitting aligned allocation function. If we need to solve it in the frontend, the middle end need to offer an intrinsic to tell the alignment at least. This patch tries to offer such an intrinsic called llvm.coro.align. Reviewed By: https://reviews.llvm.org/D117542 Differential revision: https://reviews.llvm.org/D117542
-
minglotus-6 authored
valid. Differential Revision: https://reviews.llvm.org/D117067
-
Fangrui Song authored
-
Jonas Devlieghere authored
Use libobjc.A.dylib as a sentinel to detect situations where we're reading libraries from process memory instead of the shared cache. Differential revision: https://reviews.llvm.org/D117623
-
Fangrui Song authored
and change some `fatal` to `errorOrWarn`. EhFrame.cpp is a helper file. We don't place all .eh_frame implementation there, so the code move is fine.
-
Jessica Clarke authored
These two are not conceptually the same; the former is a pointer shoved in an integer, the latter is an offset or length. On the architectures supported by libunwind, these two have the same underlying type, namely unsigned int on ILP32, unsigned long on LP64 and unsigned long long on LLP64. However, on CHERI, and thus Arm's Morello, they are not the same, as pointers are hardware capabilities that carry additional metadata including bounds and permissions, which is preserved in uintptr_t but not in size_t. Thus, fix all length variables to be of type size_t not uintptr_t, as we have done downstream for a while in CHERI LLVM but did not get round to upstreaming. Note that dyld_unwind_sections is currently defined in Apple's headers as genuinely using uintptr_t to represent lengths. This is a bad API and should be fixed, which would be totally API and ABI compatible due to size_t and uintptr_t being the same type on all supported Apple systems, but our definition is left matching theirs until such a time as they fix their bogus types. This is intended to be an NFC change on all architectures supported by LLVM upstream, only being a functional change for CHERI downstream in CHERI LLVM.
-
Matt Arsenault authored
-
Ben Langmuir authored
`llvm_jitlink_setTestResultOverride` is used via runtime lookup by tests, so make sure it is not dead-stripped from llvm-jitlink in release builds. Fixes https://github.com/llvm/llvm-project/issues/53203 Differential Revision: https://reviews.llvm.org/D117609
-
Benjamin Kramer authored
Still a fair bit of spaghetti in the unittest rules
-
Vincent Lee authored
It's still uncertain but whether we want to have `deduplicate-literals` be the default flag for LLD out of the box or not. If `deduplicate-literals` is the default behavior, then we will need a way override it and not deduplicate. Luckily, we have `no_deduplicate` to fill this gap. For now, I've set the default to be false which aligns with the existing behavior. That can only always be changed after discussions on D117250. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D117387
-
Peter Klausler authored
When a scalar-valued function with no distinct RESULT is being called recursively in its own executable part, emit a better message about the error. Clean up the code that resolves function vs. array ambiguities in expression semantics. Update to address review comment Differential Revision: https://reviews.llvm.org/D117577
-
Philip Reames authored
Try 2, this time including the test.
-
Joseph Huber authored
After the changes in D117362 made variables declared inside of a target declare directive visible outside the plugin, some variables inside the runtime were given visiblity that conflicted with their address space type. This caused problems when shared or local memory was made externally visible. This patch fixes this issue by making these varialbes static within the module, therefore limiting their visibility to being internal. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D117526
-
Joseph Huber authored
This patch changes the visiblity of variables declared within a declare target directive. Variable declarations within a declare target directive need to be externally visible to the plugin for initialization or reading. Previously this would cause runtime errors where the named global could not be found because it was not included in the symbol table. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D117362
-
Philip Reames authored
Revert "[MemoryBuiltins] Demote isMallocLikeFn to implementation routine since last use has been removed" This reverts commit 167af7bb. Buildbot breaks since I forgot to remove a unit test.
-
Philip Reames authored
-
Peter Klausler authored
A POSITION= specifier may not be used on a direct access file. Differential Revision: https://reviews.llvm.org/D117596
-
Peter Klausler authored
Don't let a program set a fixed RECL= on a connected unit unless it already had one with the same value. Differential Revision: https://reviews.llvm.org/D117595
-
Philip Reames authored
Confusion over this point came up in a couple of recent changes (D117180, e20b32ff). Current tone of discussion seems to be that we think inaccessiblememonly was always legal on allocation functions, so this change takes the form of a clarification instead of a change. Differential Revision: https://reviews.llvm.org/D117571
-
Benjamin Kramer authored
The input type of a linalg.generic can be less dynamic than its output type. If this is the case moving a reshape across the generic op would create invalid IR, as expand_shape cannot expand arbitrary dynamic dimensions. Check that the reshape is actually valid before creating the expand_shape. This exposes the existing verification logic in reshape utils and removes the incomplete custom implementation in fusion. Differential Revision: https://reviews.llvm.org/D116600
-
Benjamin Kramer authored
This can happen when the result has different dynamic dimensions than the input. Differential Revision: https://reviews.llvm.org/D117498
-
Mogball authored
-
Matt Arsenault authored
Since constants are canonicalized to the RHS, this is more likely to exit early.
-
Matt Arsenault authored
This was ignoring the requested result register, resulting in a missing def when this happened in the IRTranslator. Fixes some crashes and verifier errors at -O0. Alternatively we could pass DstOps to the constant fold functions.
-
Sam Clegg authored
We already perform memory initialization and apply global relocations during start. It makes sense to performs data relocations too. I think the reason we were not doing this already is solely historical. Differential Revision: https://reviews.llvm.org/D117412
-
Ed Maste authored
The kern.elf64.aslr.pie_enable and kern.elf32.aslr.pie_enable sysctls control the default setting for PIE binary address randomization, but it is possible to enable or disable ASLR on a per-process basis. So, use procctl(2) to query whether ASLR is enabled. (Note that with ASLR enabled but sysctl kern.elf64.aslr.pie_enable=0 a PIE binary will in effect have randomization disabled, and would be functional with msan. This is not intended as as a user-facing control though; proccontrol(1) should be used to disable aslr for the process.) Reviewed By: devnexen Differential Revision: https://reviews.llvm.org/D117521
-
Matt Arsenault authored
If the conversion artifact introduced in the unmerge of cast of merge combine already existed in the function, this would introduce dead copies which kept the old casts around, neither of which were deleted, and would fail legalization. This would fail as follows: The G_UNMERGE_VALUES of the G_SEXT of the G_BUILD_VECTOR would introduce a G_SEXT for each of the scalars. Some of the required G_SEXTs already existed in the function, so CSE moves them up in the function and introduces a copy to the original result register. The introduced CSE copies are dead, since the originally G_SEXTs were already directly used. These copies add a use to the illegal G_SEXTs, so they are not deleted. The artifact combiner does not see the defs that need to be updated, since it was hidden inside the CSE builder. I see 2 potential fixes, and opted for the mechanically simpler one, which is to just not insert the cast if the result operand isn't used. Alternatively, we could not insert the cast directly into the result register, and use replaceRegOrBuildCopy similar to the case where there is no conversion. I suspect this is a wider problem in the artifact combiner.
-
Mehdi Amini authored
Before this patch, deferred location in operation like `test.pretty_printed_region` would break the parser, and so the IR round-trip. Depends On D117088 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117413
-
Chris Bieneman authored
This change gets the split-file tests passing on Windows when autocrlf=true.
-
Stanislav Gatev authored
This is part of the implementation of the dataflow analysis framework. See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev. Reviewed-by: xazax.hun Differential Revision: https://reviews.llvm.org/D117567
-
Amir Ayupov authored
Summary: Show individual bytes in the annotation mask. Test Plan: ninja llvm-bolt Reviewers: maksfb FBD30026393
-
Amir Ayupov authored
Summary: Move the annotation to avoid dynamic memory allocations. Improves the CPU time of instrumenting a large binary by 1% (+-0.8%, p-value 0.01) Test Plan: NFC Reviewers: maksfb FBD30091656
-
Sam McCall authored
Knowing the type of more dependent expressions means we can diagnose more errors at template parsing rather than instantiation time. Such templates are IFNDR, so this is a QoI improvement. I hadn't anticipated this in the original patch, so had no test.
-
David Green authored
This extends the code in SearchForAndLoads to be able to look through ANY_EXTEND nodes, which can be created from mismatching IR types where the AND node we begin from only demands the low parts of the register. That turns zext and sext into any_extends as only the low bits are demanded. To be able to look through ANY_EXTEND nodes we need to handle mismatching types in a few places, potentially truncating the mask to the size of the final load. Recommitted with a more conservative check for the type of the extend. Differential Revision: https://reviews.llvm.org/D117457
-
Philip Reames authored
A readonly operand bundle disallows inference of readnone from the callee, but it should not prevent us from using the readnone fact on the callee to infer readonly for the callsite. Fixes pr53270. Differential Revision: https://reviews.llvm.org/D117591
-
Mehdi Amini authored
This will allow to return to the client of `parseLocationInstance` a location that is resolved later. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117088
-