- Aug 13, 2022
-
-
Liqin.Weng authored
Reviewed By: MatzeB, benshi001 Differential Revision: https://reviews.llvm.org/D129262
-
Simon Pilgrim authored
I was off by one in a couple of the inverse predicate tests....
-
Nico Weber authored
-
Ben Shi authored
Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D128133
-
LiaoChunyu authored
(setcc x, y, eq/neq) are seqz, snez that set rd = 0/1. addi is used to process immediate, which can save instructions for load immediate. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D131471
-
Simon Pilgrim authored
[Instcombine] Add some value tracking tests for cases where the conditional branch feeding a phi gives us known bits of the value based off the branch condition Part of Issue #37628
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D129457
-
Fangrui Song authored
[Support] computeHostNumPhysicalCores: use sched_getaffinity for all non-Android Linux with no custom implementation Make the sched_getaffinity based implementation available to all architectures (except s390x/x86 which have a custom implementation). The `CPU_ALLOC(2048)` code supports all `CONFIG_NR_CPUS` values in Linux kernel `arch/*/configs/`. The function is mainly used by in-process ThinLTO to decide the default number of threads. Returning -1 will use just one thread. Android is excluded because of the higher API level requirement: `sched_getaffinity; # introduced-arm=12 introduced-arm64=21 introduced-x86=12 introduced-x86_64=21`
-
Vitaly Buka authored
-
Fangrui Song authored
-
Anubhab Ghosh authored
When memory is deallocated from MapperJITLinkMemoryManager deinitialize actions are run through mapper and in case of InProcessMapper, memory protections of the region are reset to read/write as they were previously changed and can be reused in future. Differential Revision: https://reviews.llvm.org/D131768
-
Fangrui Song authored
-
Vitaly Buka authored
-
Vitaly Buka authored
It's enabled by default in D31479.
-
Vitaly Buka authored
-
Luo, Yuanke authored
Reland commit 719658d0 The base RA support infrastructure that only allow a specific register class be allocated in RA pss. Since greedy RA, basic RA derived from base RA, they all allow allocating specific register class. Fast RA doesn't support allocating register for specific register class. This patch is to enable ShouldAllocateClass in fast RA, so that it can support allocating register for specific register class. Differential Revision: https://reviews.llvm.org/D131825
-
Craig Topper authored
We were incorrectly checking that it returned an implicaton result, not that the implication result itself was true.
-
Sunho Kim authored
-
Fangrui Song authored
https://github.com/android/ndk/wiki/Changelog-r24 shows that the NDK has moved forward to at least a minimum target API of 19. Remove old workaround.
-
Sunho Kim authored
-
Anubhab Ghosh authored
This reverts commit 143555b2.
-
Sunho Kim authored
Initial platform support for COFF/x86_64. Completed features: * Statically linked orc runtime. * Full linking/initialization of static/dynamic vc runtimes and microsoft stl libraries. * SEH exception handling. * Full static initializers support * dlfns * JIT side symbol lookup/dispatch Things to note: * It uses vc runtime libraries found in vc toolchain installations. * Bootstrapping state is separated because when statically linking orc runtime it needs microsoft stl functions to initialize the orc runtime, but static initializers need to be ran in order to fully initialize stl libraries. * Process symbols can't be used blidnly on msvc platform; otherwise duplicate definition error gets generated. If process symbols are used, it's destined to get out-of-reach error at some point. * Atexit currently not handled -- will be handled in the follow-up patches. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D130479
-
Anubhab Ghosh authored
When memory is deallocated from MapperJITLinkMemoryManager deinitialize actions are run through mapper and in case of InProcessMapper, memory protections of the region are reset to read/write as they were previously changed and can be reused in future. Differential Revision: https://reviews.llvm.org/D131768
-
jackh authored
Fix commit `b646f095` and remove redundant code. Differential Revision: https://reviews.llvm.org/D131750
-
Joe Loser authored
Remove the `UnitT` type and operators in favor of using `std::monostate` directly. Differential Revision: https://reviews.llvm.org/D131778
-
Jeff Niu authored
-
Jeff Niu authored
E.g. `array<i32:>` -> `array<i32>` Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D131823
-
Jeff Niu authored
Confined -> ConfinedAttr AllAttrConstraintsOf -> AllOfAttr To be in line with ConfinedType and AllOfType. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131822
-
Kazu Hirata authored
This patch deprecates hasValue and getValue for consistency with std::optional and llvm::Optional. Note that I've migrated all known uses of them to has_value and value, respectively. Differential Revision: https://reviews.llvm.org/D131366
-
Kazu Hirata authored
-
jacquesguan authored
Since we use C++17 now, we could use nested namespace definations to simplify code. Differential Revision: https://reviews.llvm.org/D131751
-
Jeff Niu authored
An optional attribute dictionary before a region in an assembly format is a potential format ambiguity because they both start with `{`. Fixes #53077 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131636 -
Jeff Niu authored
This patch adds support for string literals as `custom` directive arguments. This can be useful for re-using custom parsers and printers when arguments have a known value. For example: ``` ParseResult parseTypedAttr(AsmParser &parser, Attribute &attr, Type type) { return parser.parseAttribute(attr, type); } void printTypedAttr(AsmPrinter &printer, Attribute attr, Type type) { return parser.printAttributeWithoutType(attr); } ``` And in TableGen: ``` def FooOp : ... { let arguments = (ins AnyAttr:$a); let assemblyFormat = [{ custom<TypedAttr>($a, "$_builder.getI1Type()") attr-dict }]; } def BarOp : ... { let arguments = (ins AnyAttr:$a); let assemblyFormat = [{ custom<TypedAttr>($a, "$_builder.getIndexType()") attr-dict }]; } ``` Instead of writing two separate sets of custom parsers and printers. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131603 -
Jennifer Yu authored
Currently, the field just emit map info for this pointer variable. It is failed at run time. For the fields, the PartialStruct is created and it needs call to emitCombinedEntry which create the base that covers all the pieces. The change is to generate map info as regular fields. Differential Revision: https://reviews.llvm.org/D129608
-
Vitaly Buka authored
Reviewed By: kda Differential Revision: https://reviews.llvm.org/D129247
-
Jeff Niu authored
This reland includes changes to the Python bindings. Switch variadic operand and result segment size attributes to use the dense i32 array. Dense integer arrays were introduced primarily to represent index lists. They are a better fit for segment sizes than dense elements attrs. Depends on D131801 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131803
-
Jeff Niu authored
This patch adds python bindings for the dense array variants. Fixes #56975 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D131801
-
Usman Nadeem authored
In Android API < 30 there is no HWAsan instrumentation support for globals so the test fails if API < 30 or if the target triple does not specify the API version. Add -triple=aarch64-linux-android31 to enable global instrumentation. This is the same triple as is used in the RUN line for -fsanitize=memtag-globals. Differential Revision: https://reviews.llvm.org/D131806 Change-Id: I300703bd126b10e3c52505e23c78c5a48acb0309
-
Eric Kunze authored
ReluN has been removed from the TOSA specification. It can be replaced in all instances with Clamp(0,N) Signed-off-by:
Eric Kunze <eric.kunze@arm.com> Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D128683
-
isuckatcs authored
Inside `ExprEngine::VisitLambdaExpr()` we wasn't prepared for a copy elided initialized capture's `InitExpr`. This patch teaches the analyzer how to handle such situation. Differential Revision: https://reviews.llvm.org/D131784
-