- Jun 10, 2024
-
-
Craig Topper authored
-
Craig Topper authored
-
Fangrui Song authored
MCInst is primarily used in local variables and MCRelaxableFragment (mostly JMP/JCC for x86). Reducing the inline element count can make MCRelaxableFragment smaller, potentially leading to a lower peak RSS. When compiling sqlite3.c, x86-64 has the largest maximum numOperands. aarch64: 5; ppc64: 6; riscv64: 3; s390x: 6; x86-64: 8 Here is the frequency table for x86-64: max getNumOperands: 8 0: 676 1: 37892 2: 84046 3: 26767 4: 1640 5: 1222 6: 80794 7: 768 8: 22 Pull Request: https://github.com/llvm/llvm-project/pull/94913
-
Fabian Mora authored
Make `sym_name` an inherent attr in GPUModuleOp so that it doesn't show in the discardable attributes. The change is safe as the attribute is always expected to be present.
-
Mark de Wever authored
This implements the throwing overload and the exception classes throw by this overload. Implements parts of: - P0355 Extending chrono to Calendars and Time Zones
-
Kazu Hirata authored
VTableNamePtr and CompressedVTableNamesLen are always used together to create a StringRef in getSymtab. We can create the StringRef ahead of time in readHeader. This way, IndexedInstrProfReader becomes a tiny bit simpler with fewer member variables. Also, StringRef default-constructs itself with its Data and Length set to nullptr and 0, respectively, which is exactly what we need.
-
Puelloc authored
[Clang][OpenMP] throw compilation error instead of crash in Stmt::OMPScopeDirectiveClass case (#77535) (#84135) Fix #77535, Change unstable assertion into compilation error, and add a test for it.
-
Fabian Mora authored
Fully qualify all namespaces appearing in `GPUTargetAttrInterface` and `OffloadingLLVMTranslationAttrInterface`. If they're not fully qualified then out-of-tree dialects might encounter name resolution errors.
-
Matt Arsenault authored
Vectors are supported for fp operations now, so remove the assert. The supported type/operation combinations are best left for the verifier. Avoids regression in future commit that starts treating some vector cases as legal.
-
Yingwei Zheng authored
Closes #94897.
-
Craig Topper authored
Remove unneeded parameters or sync into class if they are only ever used with one value.
-
Kazu Hirata authored
-
Matheus Izvekov authored
-
Kazu Hirata authored
We can implicitly convert RemainingVDs to an ArrayRef. Note that RemainingVDs is of type SmallVector<InstrProfValueData, 24>.
-
Mark de Wever authored
Implements parts of: - P0355 Extending chrono to Calendars and Time Zones
-
- Jun 09, 2024
-
-
Koakuma authored
This adds the alternate mnemonics for movrz and movrnz. Reviewers: s-barannikov, jrtc27, brad0, rorth Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94252
-
Koakuma authored
If the Count passed into writeNopData is not a multiple of four, add a little amount of zeros before writing the NOP stream. This makes it match the behavior of GNU binutils. Reviewers: brad0, rorth, s-barannikov, jrtc27 Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94251
-
Kazu Hirata authored
-
Koakuma authored
This adds support for `prefetcha` instruction for prefetching from alternate address spaces. Reviewers: jrtc27, brad0, rorth, s-barannikov Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94250
-
Koakuma authored
This adds named tag constants (such as `#one_write` and `#one_read`) for the prefetch instruction. Reviewers: jrtc27, rorth, brad0, s-barannikov Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94249
-
Andreas Jonson authored
Swap out range metadata to range attribute for calls to be able to deprecate range metadata on calls in the future.
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
-
Florian Hahn authored
Handle binary ops and a few other instructions in onlyFirstPartUsed; they only use the first part if they themselves only have their first part used.
-
David Green authored
This moves the combine of fdiv by constant to fmul out of an 'if (Options.UnsafeFPMath || Flags.hasAllowReciprocal()' block, so that it triggers if the divide is exact. An extra check for Recip.isDenormal() is added as multiple places make reference to it being unsafe or slow on certain platforms.
-
Simon Pilgrim authored
[DAG] FoldConstantArithmetic - allow binop folding to work with differing bitcasted constants (#94863) We currently only constant fold binop(bitcast(c1),bitcast(c2)) if c1 and c2 are both bitcasted and from the same type. This patch relaxes this assumption to allow the constant build vector to originate from different types (and allow cases where only one operand was bitcasted). We still ensure we bitcast back to one of the original types if both operand were bitcasted (we assume that if we have a non-bitcasted constant then its legal to keep using that type).
-
Simon Pilgrim authored
-
Piotr Zegar authored
Ignore implicit pointer conversions that are part of a cast expression Closes #93959
-
Piotr Zegar authored
Add StrictCStandardCompliance and StrictCppStandardCompliance options that default to true. Closes #83732
-
Piotr Zegar authored
Ignore implicit declarations and defaulted functions. Helps with issues in generated code like, C++ spaceship operator. Closes #93409
-
Simon Pilgrim authored
Based on feedback on #94863
-
Matthias Springer authored
-
Piotr Zegar authored
Do not emit warnings for non-math operators. Closes #92516
-
Timm Bäder authored
Really perform the conversion always if the flag is set and don't make it dependent on whether we're checking the result for initialization.
-
Koakuma authored
This adds %set_softint and %clear_softint alias for %asr20 and %asr21 as defined in JPS1. Reviewers: jrtc27, brad0, s-barannikov, rorth Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94247
-
Koakuma authored
This adds support for GNU %uhi and %ulo extensions. Those resolve to the same relocations as %hh and %hm. Reviewers: cyndyishida, dcci, brad0, jrtc27, aaupov, Endilll, rorth, maksfb, #reviewers-libcxxabi, s-barannikov, rafaelauler, ayermolo, #reviewers-libunwind, #reviewers-libcxx, daniel-grumberg, tbaederr Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94246
-
Koakuma authored
Transform `addc imm, %rs, %rd` into `addc %rs, imm, %rd`. This is used in some GNU and Linux code. Reviewers: s-barannikov, rorth, jrtc27, brad0 Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/94245
-
Fangrui Song authored
Decrease the uses of getFragmentList() to make it easier to change the fragment list representation.
-
Vlad Serebrennikov authored
-