Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoBump] Merge with 235d6841 (17) #274

Merged
merged 276 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
f1dff83
[mlir][bazel] Expose GPUCommonPass.h only by a single target. (#86730)
chsigg Mar 27, 2024
9c0c98e
[llvm-debuginfo-analyzer][DOC] Convert 'README.txt' to markdown. (#86…
CarlosAlbertoEnciso Mar 27, 2024
22bfc58
[RISCV] Teach RISCVMakeCompressible handle byte/half load/store for Z…
yetingk Mar 27, 2024
16993c7
[NFC][HWASAN] Regenerate test
vitalybuka Mar 27, 2024
05a7b22
[RISCV] Add areInlineCompatible for riscv target (#86639)
jacquesguan Mar 27, 2024
577e0ef
[clang][AST] Silence unused-value warnings in unittest DeclPrinterTest
alinas Mar 27, 2024
aa2d5d5
Recommit "[RISCV][TTI] Scale the cost of the sext/zext with LMUL (#86…
arcbbb Mar 27, 2024
6d13263
[RISCV] Add tests for combineBinOpOfZExts. NFC (#86689)
lukel97 Mar 27, 2024
defc485
[AArch64] Remove Automatic Enablement of FEAT_F32MM (#85203)
Stylie777 Mar 27, 2024
2938f1c
[InstCombine] Refactor powi(X,Y) / X to call foldPowiReassoc, NFC
vfdff Mar 24, 2024
bd9bb31
[InstCombine] add restrict reassoc for the powi(X,Y) / X
vfdff Mar 24, 2024
df75183
[TBAA] Add verifier for tbaa.struct metadata (#86709)
juliannagele Mar 27, 2024
f15b7de
[RISCV] Add test case to show missing vmerge fold on tied pseudos. NFC
lukel97 Mar 27, 2024
cc23ee8
[LLD][COFF] Add support for EXPORTAS import name type. (#86541)
cjacek Mar 27, 2024
c9d1266
[llvm-dlltool][llvm-lib][COFF] Don't override NONAME exports with dem…
cjacek Mar 27, 2024
ab7dba2
[CodeGen][LLVM] Make the `va_list` related intrinsics generic. (#85460)
AlexVlx Mar 27, 2024
ef316da
AMDGPU: Fix dead check prefixes in test
arsenm Mar 26, 2024
1103a2a
Reland [AMDGPU] MCExpr-ify MC layer kernel descriptor (#86494)
JanekvO Mar 27, 2024
408c365
[gn build] Port 1103a2a337e9
llvmgnsyncbot Mar 27, 2024
51388fb
[DAG] visitSub - reuse existing SDLoc instead of regenerating it. NFC.
RKSimon Mar 26, 2024
9247f31
[DAG] foldAddSubOfSignBit - reuse existing SDLoc instead of regenerat…
RKSimon Mar 26, 2024
875aed1
[X86] Add combineExtractFromVectorLoad helper - pulled out of combine…
RKSimon Mar 27, 2024
e82765b
[X86] masked_store.ll - add nounwind to remove cfi noise
RKSimon Mar 27, 2024
b8cc838
[analyzer][docs] Document the `optin.performance.Padding` checker (#8…
komalverma04 Mar 27, 2024
4f9aab2
[NFC][TableGen][GlobalISel] Move MIR pattern parsing out of combiner …
Pierre-vh Mar 27, 2024
26464f2
[FreeBSD] Mark __stack_chk_guard dso_local except for PPC64 (#86665)
justincady Mar 27, 2024
932949d
[APINotes] Upstream the remaining API Notes fixes and tests
egorzhdan Mar 27, 2024
b343b02
[gn build] Port 4f9aab2b500d
llvmgnsyncbot Mar 27, 2024
2fa46ca
[workflows] Update the version of the scorecard-action (#86753)
tstellar Mar 27, 2024
6e6d266
[libc++] Fix one case in saturate_cast.pass.cpp for 64-bit on z/OS (#…
zibi2 Mar 27, 2024
2cb7ea1
[lldb][nfc] Delete unused variable (#86740)
felipepiovezan Mar 27, 2024
f5296df
[FPEnv][AMDGPU] Correct AMDGPUSimplifyLibCalls handling of strictfp a…
kpneal Mar 27, 2024
b43ec8e
[SLP]Fix PR86798: handle phi nodes being trunced, but not its operands.
alexey-bataev Mar 27, 2024
11b20d7
[clang] Fix an out-of-bound crash when checking template partial spec…
hokein Mar 27, 2024
9f84594
[lldb][Dwarf] Add missing timer when parsing .debug_abbrev. (#86568)
ZequanWu Mar 27, 2024
6d3ec56
[X86] combineExtractWithShuffle - use combineExtractFromVectorLoad to…
RKSimon Mar 27, 2024
9189660
[RISCV] RISCV vector calling convention (1/2) (#77560)
4vtomat Mar 27, 2024
58de1e2
Fix stack layout for frames larger than 2gb (#84114)
wesleywiser Mar 27, 2024
13b653a
[clang][RISCV] Enable RVV with function attribute __attribute__((targ…
4vtomat Mar 27, 2024
51f7b26
[libc][support][UInt] implement 128b math helpers (#86531)
nickdesaulniers Mar 27, 2024
aa2c14d
[OpenMP] Close up permissions on /tmp files (#85469)
TerryLWilmarth Mar 27, 2024
009f88f
[SystemZ][z/OS] TXT records in the GOFF reader (#74526)
ysyeda Mar 27, 2024
c388690
[libc++][NFC] Simplify copy and move lowering to memmove a bit (#83574)
philnik777 Mar 27, 2024
313bf28
[ARM][MVE] Remove kill flags when reusing VPR register. (#86300)
davemgreen Mar 27, 2024
78f0871
Revert rG58de1e2c5eee548a9b365e3b1554d87317072ad9 "Fix stack layout f…
RKSimon Mar 27, 2024
7711853
[libc] Remove obsolete LIBC_HAS_BUILTIN macro (#86554)
marcauberer Mar 27, 2024
6a0ec8e
[lldb] Revive shell test after updating UnwindTable (#86770)
jasonmolenda Mar 27, 2024
468c6be
Fix "result of 32-bit shift implicitly converted to 64 bits" MSVC war…
RKSimon Mar 27, 2024
f92fa7e
[X86] Add -verify-machineinstrs to huge stack tests
RKSimon Mar 27, 2024
9669aba
[Thumb1] LivePhysRegs to LiveRegUnits (#84474)
AreaZR Mar 27, 2024
6ad1cf3
[InstallAPI] Add *umbrella-header options (#86587)
cyndyishida Mar 27, 2024
0099c58
[bazel] Remove -lm on macOS (#86706)
keith Mar 27, 2024
fca4831
Fix signed/unsigned comparison warning. NFC.
RKSimon Mar 27, 2024
4d17743
[flang][OpenMP] Rename makeList overloads to make{Objects,Clauses}, N…
kparzysz Mar 27, 2024
1c96580
[LegalizeDAG] Merge PerformInsertVectorEltInMemory into ExpandInsertT…
topperc Mar 27, 2024
c335acc
[ELF] --pack-dyn-relocs=android+relr: place IRELATIVE in .rela.plt (#…
MaskRay Mar 27, 2024
dcd0f2b
[X86] combineExtractFromVectorLoad support extraction from vector of …
RKSimon Mar 27, 2024
5d3ef06
[X86] combine-pavg.ll - add demandedelts test coverage for #86284
RKSimon Mar 27, 2024
35d55f2
[NFC][mlir] Reorder `declarePromisedInterface()` operands (#86628)
justinfargnoli Mar 27, 2024
96b3969
[NFC][HWASAN] Precommit globals-access test
vitalybuka Mar 27, 2024
e96f652
[NFC][IR] Add SetNoSanitize helpers (#86772)
vitalybuka Mar 27, 2024
5a7341a
[NFC][libc++][TZDB] Improves some internals. (#84800)
mordante Mar 27, 2024
52431fd
[WebAssembly] Remove threwValue comparison after __wasm_setjmp_test (…
aheejin Mar 27, 2024
2598aa6
[CSSPGO] Reject high checksum mismatched profile (#84097)
wlei-llvm Mar 27, 2024
f1ac559
Revert "[scudo] Use getMonotonicTimeFast for tryLock." (#86590)
ChiaHungDuan Mar 27, 2024
36e74cf
[AArch64] Clear kill flags when removing FMOVDr. (#86308)
davemgreen Mar 27, 2024
2329fb2
[HLSL] enforce unsigned types for reversebits (#86720)
farzonl Mar 27, 2024
2d64185
[nfc][PGO]Factor out profile scaling into a standalone helper functio…
minglotus-6 Mar 27, 2024
e36ec2f
[C99] Claim conformance to digraphs/iso646
AaronBallman Mar 27, 2024
dd06b8e
[clang-format] Fix anonymous reference parameter with default value (…
rayroudc Mar 27, 2024
421085f
[Offload] Change unregister library to use `atexit` instead of destru…
jhuber6 Mar 27, 2024
ed68aac
[Libomptarget] Move API implementations into GenericPluginTy (#86683)
jhuber6 Mar 27, 2024
6ef8299
Recommit "[VPlan] Replace disjoint or with add instead of dropping di…
fhahn Mar 27, 2024
c2bdbed
[libc++][NFC] Remove whitespace that doesn't belong
ldionne Mar 27, 2024
aeb8628
Revert "[SystemZ][z/OS] TXT records in the GOFF reader (#74526)"
Everybody0523 Mar 27, 2024
baf66ec
[Target][RISCV] Add HwMode support to subregister index size/offset. …
topperc Mar 27, 2024
10bd555
[RISCV] Model vd as a src for some Zvk* instructions in MC layer. (#8…
topperc Mar 27, 2024
d9a685a
[CodeGen][arm64e] Add methods and data members to Address, which are …
ahatanak Mar 27, 2024
cd17082
[libc][math][c23] Add remaining linux/* entrypoints for {,u}fromfp{,x…
overmighty Mar 27, 2024
4a5056b
[Libomptarget][NFC] Remove trivially true checks on function pointers…
jhuber6 Mar 27, 2024
685d785
Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-…
amy-kwan Mar 27, 2024
abc270a
Finish revert "[SystemZ][z/OS] TXT records in the GOFF reader (#74526)"
boomanaiden154 Mar 27, 2024
0d7ea50
[AArch64] Pre-commit test for #86717. NFC
topperc Mar 27, 2024
acab142
[LegalizeDAG] Freeze index when converting insert_elt/insert_subvecto…
topperc Mar 27, 2024
4d4626d
[TEST][HWASAN] Fix test after #86771
vitalybuka Mar 27, 2024
3522de9
[TEST][HWASAN] Fix test after #86771
vitalybuka Mar 27, 2024
fa90a0a
[llvm-exegesis] Improve error handling for shm_open calls
boomanaiden154 Mar 27, 2024
8a07167
Revert "[libc][math][c23] Add remaining linux/* entrypoints for {,u}f…
nickdesaulniers Mar 27, 2024
453a63c
[NFC][HWASAN] Promote InstrumentGlobals to member (#86773)
vitalybuka Mar 27, 2024
70e8cf0
[HWASAN] Don't instrument loads from global if globals are not tagged…
vitalybuka Mar 27, 2024
f18600c
[Driver] Avoid repeated ToolChain.getTriple() calls. NFC
MaskRay Mar 27, 2024
c7d947f
[lldb] [ObjC runtime] Don't cast to signed when left shifting (#86605)
jasonmolenda Mar 27, 2024
acdba09
[ELF] Change duplicate symbol errors to use errorOrWarn
MaskRay Mar 27, 2024
b9cd48f
Revert "[TBAA] Add verifier for tbaa.struct metadata (#86709)"
fhahn Mar 27, 2024
552c8eb
[SLP][NFC]Add a test with the wrong result extension after reduction,
alexey-bataev Mar 27, 2024
742a82a
[lld-macho] Implement support for ObjC relative method lists (#86231)
alx32 Mar 27, 2024
d94dc5f
[SLP]Fix PR86763: do not truncate reductions to the demanded bits size.
alexey-bataev Mar 27, 2024
0a43ca7
[AMDGPU] Fix missing `IsExact` flag when expanding vector binary oper…
shiltian Mar 27, 2024
a8b90c0
[GlobalISel] Update `MachineIRBuilder::buildAtomicRMW` interface (#86…
shiltian Mar 27, 2024
5da3937
[clang-installapi] Remove unnecessary copy (#86808)
smanna12 Mar 27, 2024
b7a4ace
[SLP][NFC]Improve compile time by size analysis limit and reduction size
alexey-bataev Mar 27, 2024
8881281
[RISCV] Add test coverage for (add (shl Z, c1), Y, (shl Z, c2)) variants
preames Mar 27, 2024
d5f0634
[libc] add flag for FP_*LOGB0/NAN values (#86723)
michaelrj-google Mar 27, 2024
8a75faf
[NFC][CLANG] Fix null pointer dereferences (#86760)
smanna12 Mar 27, 2024
4c2f688
[CLANG] Fix potential integer overflow value in getRVVTypeSize() (#86…
smanna12 Mar 27, 2024
d8fe2e4
[BOLT] Fix enumeration of secondary entry points
aaupov Mar 27, 2024
0a17eed
[CI][NFC] Fix shellcheck warnings in CI scripts (#86877)
marcauberer Mar 27, 2024
14ba782
[Clang][Sema] Allow flexible arrays in unions and alone in structs (#…
kees Mar 27, 2024
b76fd1e
[lldb] Avoid deadlock by unlocking before invoking callbacks (#86888)
JDevlieghere Mar 27, 2024
385e3e2
[BOLT] Set EntryDiscriminator in YAML profile for indirect calls
aaupov Mar 27, 2024
19185d5
[Libomptarget] Make dynamic loading libffi more verbose. (#86891)
ye-luo Mar 27, 2024
e318613
[NFC][TLI] Move VecFuncs to statics to reduce stack usage (#86829)
AlexMaclean Mar 27, 2024
036e7ee
[NFC][AArch64] Regenerate regression tests.
efriedma-quic Mar 28, 2024
0fda758
[GISEL][NFC] Refactor OperandPredicateMatcher::isHigherPriorityThan (…
marcauberer Mar 28, 2024
bbfa506
[lld-macho] Fix bug in makeSyntheticInputSection when -dead_strip fla…
alx32 Mar 28, 2024
cb898e2
[mlir] Make the print function in CRunnerUtil platform agnostic (#86767)
Lewuathe Mar 28, 2024
17ab9e6
[TSAN] Move test into Linux/
vitalybuka Mar 28, 2024
64f0410
[CI] Hotfix: CI runs failing due to target escaping (#86897)
marcauberer Mar 28, 2024
cc98ffb
[tsan][test] Remove some unneded debug comments in a tsan test (#86896)
canova Mar 28, 2024
f75eeba
Revert "[CodeGen][arm64e] Add methods and data members to Address, wh…
ahatanak Mar 28, 2024
1095f71
[NFC][Clang] Fix potential dereferencing of nullptr (#86759)
smanna12 Mar 28, 2024
0c1c0d5
[MLIR] Add patterns to bubble-up pack and push-down unpack through co…
Mar 28, 2024
443baed
[ELF,test] Update tests that depend on --export-dynamic creating dyna…
MaskRay Mar 28, 2024
070d7af
[ELF] --export-dynamic: don't create dynamic sections for non-PIC sta…
MaskRay Mar 28, 2024
2c7610c
[nfc]Make InstrProfSymtab non-copyable and non-movable (#86882)
minglotus-6 Mar 28, 2024
056b404
[libc][NFC] refactor fmin and fmax (#86718)
Jobhdez Mar 28, 2024
e766f87
[clang-format] Handle C++ Core Guidelines suppression tags (#86458)
owenca Mar 28, 2024
d9e3e11
[clang-format] Exit clang-format-diff only after all diffs are printe…
owenca Mar 28, 2024
6b7ecc7
Revert "[WebAssembly] Remove threwValue comparison after __wasm_setjm…
aheejin Mar 28, 2024
a41bfea
[MC] Simplify ELFObjectWriter. NFC
MaskRay Mar 28, 2024
f8bab38
[CSSPGO] Fix the issue of missing callee profile matches (#85715)
wlei-llvm Mar 28, 2024
ed801ab
[Transforms] Fix an unused variable warning
kazutakahirata Mar 28, 2024
5dfc446
[RISCV] Remove Unnecessary Semicolon. NFC (#86911)
hchandel Mar 28, 2024
e5b9399
[libc] Move baremetal write_to_stderr implementation to io.cpp (#86890)
petrhosek Mar 28, 2024
b7ac8fd
[SPIR-V] Improve type inference: deduce types of composite data struc…
VyacheslavLevytskyy Mar 28, 2024
38f5596
[LoopRotate] Add test to track update for inaccurate branch weight (#…
HaohaiWen Mar 28, 2024
63ea5a4
[clang] Invalidate the alias template decl if it has multiple written…
hokein Mar 28, 2024
2a2fd48
[RemoveDIs] Update DIBuilder C API and OCaml bindings [2/2] (#86529)
OCHyams Mar 28, 2024
88b10f3
[MC][AArch64] Segregate constant pool caches by size. (#86832)
statham-arm Mar 28, 2024
eff4593
[RISCV] Add test case for missed vwaddu.vv due to add->or combine. NFC
lukel97 Mar 28, 2024
8d77d36
[clang][dataflow] Introduce a helper class for handling record initia…
martinboehme Mar 28, 2024
912e2c4
[Debuginfo][TailCallElim] Fix #86262: drop the debug location of entr…
Apochens Mar 28, 2024
856e815
[DAGCombiner] Set disjoint flag in add->or and xor->or combines (#86925)
lukel97 Mar 28, 2024
e640d9e
[RISCV][GlobalISel] Fix legalizing ‘llvm.va_copy’ intrinsic (#86863)
bvlgah Mar 28, 2024
8963a47
Fix #86269: remove unused variable (#86927)
Apochens Mar 28, 2024
8a7f021
[GitHub] Fix typos in automation (#86886)
jryans Mar 28, 2024
79ba323
[Debuginfo][GVNHoist] Fix #86227: update the debug location of the ho…
Apochens Mar 28, 2024
36b4b9d
[X86] Support immediate folding for CCMP/CTEST (#86616)
FreddyLeaf Mar 28, 2024
28b196e
[llvm] Write temporary test files into %t
gribozavr Mar 28, 2024
b999e63
[OpenMP] Fix node destruction race in __kmpc_omp_taskwait_deps_51 (#8…
uweigand Mar 28, 2024
c13556c
AMDGPU: Document more backend recognized attributes (#80239)
arsenm Mar 28, 2024
c9db031
[Support] Fix color handling in formatted_raw_ostream (#86700)
nga888 Mar 28, 2024
a495cfb
[IR][NFC] Cleanup CmpInst signatures / code docs (#86441)
marcauberer Mar 28, 2024
9d61f7e
[flang] Remove duplicate call to va_end() (#86865)
marcauberer Mar 28, 2024
daa755b
[libc] Disable testing for NVPTX debug builds (#86856)
jhuber6 Mar 28, 2024
896037c
[LoopRotate] Set loop back edge weight to not less than exit weight (…
HaohaiWen Mar 28, 2024
fb8cccf
[AST] Print the "aggregate" for aggregate deduction guide decl. (#84018)
hokein Mar 28, 2024
a042fcb
[clang] Bailout when the substitution of template parameter mapping i…
hokein Mar 28, 2024
4ddd4ed
[AIX][TOC] -mtocdata/-mno-tocdata fix non deterministic iteration ord…
syzaara Mar 28, 2024
7919975
[flang][OpenMP] Make several function local to OpenMP.cpp, NFC (#86726)
kparzysz Mar 28, 2024
56a10a3
[clangd][trace] Fix comment to mention that trace spans are measured …
VitaNuo Mar 28, 2024
e8e80d0
[OpenMP] Apply post-commit review comments in PR86289, NFC (#86828)
kparzysz Mar 28, 2024
a2982a2
Revert "[compiler-rt] Allow building builtins.a without a libc (#86737)"
luporl Mar 28, 2024
96c8e2e
[APINotes] For a re-exported module, look for APINotes in the re-expo…
egorzhdan Mar 28, 2024
91856b3
[mlir] move MatchOpInterface under Transform/Interfaces (#86899)
ftynse Mar 28, 2024
eacda36
[SCF][Transform] Add support for scf.for in LoopFuseSibling op (#81495)
Mar 28, 2024
a3efc53
[AIX][TLS] Produce a faster local-exec access sequence for the "aix-s…
amy-kwan Mar 28, 2024
84780af
[CodeGen][arm64e] Add methods and data members to Address, which are …
ahatanak Mar 28, 2024
a515ea5
[OCaml] Fix buildbot failure caused by caa2258. NFC.
dtcxzyw Mar 28, 2024
ff870ae
[ARM] Add reference to `ARMAsmParser` in `ARMOperand` (#86110)
AlfieRichardsArm Mar 28, 2024
d7975c9
[SLP]Add better minbitwidth analysis for udiv/urem instructions.
alexey-bataev Mar 28, 2024
d775398
[mlir][linalg] Add e2e test for linalg.mmt4d + pack/unpack (#84964)
banach-space Mar 28, 2024
ffed554
[libc++] Switch FreeBSD to C++26 (#86658)
emaste Mar 28, 2024
d3aa92e
[mlir][vector] Add support for scalable vectors to VectorLinearize (#…
banach-space Mar 28, 2024
ae28028
[clang][dataflow] Fix for value constructor in class derived from opt…
martinboehme Mar 28, 2024
e251f56
[libclc] Make CMake messages better fit into LLVM (#86945)
frasercrmck Mar 28, 2024
94b5c11
[ISel] Move handling of atomic loads from SystemZ to DAGCombiner (NFC…
JonPsson1 Mar 28, 2024
f566b07
[MLIR] Add pattern to fold insert_slice of extract_slice (#86328)
Mar 28, 2024
f908135
[MCP] Use MachineInstr::all_defs instead of MachineInstr::defs in has…
topperc Mar 28, 2024
152fcf6
[RISCV] Add validation of SPIMM for cm.push/pop. (#84989)
topperc Mar 28, 2024
7789ec0
[libc] s/NULL/nullptr (#86867)
nickdesaulniers Mar 28, 2024
2763353
[Object,ELFType] Rename TargetEndianness to Endianness (#86604)
MaskRay Mar 28, 2024
0f61051
[clang][HLSL][SPRI-V] Add convergence intrinsics (#80680)
Keenuts Mar 28, 2024
36b8643
[DXIL] Implement pow lowering (#86733)
farzonl Mar 28, 2024
39fe729
[lld-macho] Ignore -no_warn_duplicate_libraries flag (#86303)
keith Mar 28, 2024
706c130
[Dialect] Fix a warning
kazutakahirata Mar 28, 2024
4238324
[asan][windows] Weak function interception support in instruction siz…
barcharcraz Mar 28, 2024
ad97ee2
[libc][support][FixedVector] add reverse iterator (#86732)
nickdesaulniers Mar 28, 2024
23ca8e6
[NFC][mlir][tensor][transform] fix compilation warning. (#86977)
Mar 28, 2024
8dcff10
[clang][analyzer] Improve documentation of StreamChecker (NFC). (#83858)
balazske Mar 28, 2024
6aee1f9
[libc][math][c23] Fix bounds checking and add FE_INVALID raising in {…
overmighty Mar 28, 2024
1607e82
[InlineCost] Disable cost-benefit when sample based PGO is used (#86626)
helloguo Mar 28, 2024
16b7cc6
[SystemZ] Eliminate call sequence instructions early. (#77812)
JonPsson1 Mar 28, 2024
237572f
[SPIR-V] Fix paths when copying spriv-dis and spirv-val on windows (#…
bogner Mar 28, 2024
35e7d45
[BOLT] Add rewriting support for Linux kernel __bug_table (#86908)
maksfb Mar 28, 2024
6dceea3
[HLSL] prevent generation of wrong double intrinsics. (#86932)
aabysswalker Mar 28, 2024
aa7ae1b
[mlir][tensor] Fold producer linalg transpose with consumer unpack an…
pashu123 Mar 28, 2024
2af3b43
[mlir] fix bazel error for MatchInterfaces dialect
yijia1212 Mar 28, 2024
0b79057
[mlir] propagate silenceable failures in transform.foreach_match (#86…
ftynse Mar 28, 2024
6582509
[AIX] Handle toc-data offset overflowing 16-bits (#80092)
syzaara Mar 28, 2024
da5d576
[mlir] fix empty spaces in bazel file
yijia1212 Mar 28, 2024
5990278
[clang] Add invalid check in NormalizedConstraint::fromConstraintExpr…
hokein Mar 28, 2024
d61ec51
[mlir][spirv] Add IsInf/IsNan expansion for WebGPU (#86903)
kuhar Mar 28, 2024
7be847e
[libc++abi] Disable forced_unwind4 test for musl. (#85096)
al45tair Mar 28, 2024
8ee5a3f
[C99] Claim conformance to WG14 N590 (#86985)
AaronBallman Mar 28, 2024
cba6df9
[ValueTracking] Add basic tests tracking `or disjoint` conditions as …
goldsteinn Mar 21, 2024
637421c
[ValueTracking] Tracking `or disjoint` conditions as `add` in Assumpt…
goldsteinn Mar 21, 2024
efa1544
[LVI] Add tests for tracking `or disjoint` like add; NFC
goldsteinn Mar 21, 2024
0e78655
[LVI] Use m_AddLike instead of m_Add when matching simple condition
goldsteinn Mar 20, 2024
c2f3a11
Remove an accidental duplicate C status page entry
AaronBallman Mar 28, 2024
6e58efa
[mlir][bazel] Export headers either from :Transforms or :TransformUti…
chsigg Mar 28, 2024
6f10dcc
[HLSL] Add validation for the -enable-16bit-types option (#85340)
bob80905 Mar 28, 2024
346f499
[RISCV] Add add_like PatFrags to reduce number of required patterns […
preames Mar 28, 2024
5b06de7
[X86] Add isLogicOp helper to match ISD::AND/OR/XOR and X86ISD::ANDNP
RKSimon Mar 28, 2024
44af53b
[clang][modules] Avoid calling expensive `SourceManager::translateFil…
jansvoboda11 Mar 28, 2024
688d71e
[libclc] Track dependencies through dependency files (#86965)
frasercrmck Mar 28, 2024
70cf2a0
[SLP][NFC]Simplify function/constructors by removing unnecessary params.
alexey-bataev Mar 28, 2024
6b95747
[lld-macho] Disable objc test on 32-bit ARM targets
luporl Mar 28, 2024
7c1c07c
[libc][math][c23] Fix X86_Binary80 special cases for canonicalize fun…
Sh0g0-1758 Mar 28, 2024
a834076
[lldb] Remove cmake check for pexpect with LLDB_TEST_USE_VENDOR_PACKA…
rupprecht Mar 28, 2024
8a614c1
[VPlan] Rename getVPValueOrAddLiveIn -> getOrAddLiveIn (NFCI).
fhahn Mar 28, 2024
17c3f10
[SystemZ] Fix an unused variable warning
kazutakahirata Mar 28, 2024
44253a9
[memprof] Add MemProf version (#86414)
kazutakahirata Mar 28, 2024
d357324
Revert "[libc][math][c23] Fix X86_Binary80 special cases for canonica…
nickdesaulniers Mar 28, 2024
62d6beb
[DXIL] Add lowering for `reversebits` and `trunc` (#86909)
hekota Mar 28, 2024
23d45e5
[MCP] Remove dead copies from basic blocks with successors. (#86973)
topperc Mar 28, 2024
380f0fb
[CodeGen/DWARF] Introduce DWARF tag for SwiftTail and emit it in Code…
adrian-prantl Mar 28, 2024
a3c2d8c
[RISCV] Combine ({s,u}{div,rem} (zext, zext)) -> (zext ({s,u}{div,rem…
lukel97 Mar 28, 2024
c482fad
[AArch64][GISEL] Consider fcmp true and fcmp false in cond code selec…
marcauberer Mar 28, 2024
219511a
[APINotes] Make an assert in a std::sort call tolerate self-comparisons
gribozavr Mar 28, 2024
6373577
[libc] Add inf/nan tests for strfrom*() functions (#86663)
vinayakdsci Mar 28, 2024
6b149f7
[scudo] Dump ReleaseToOsIntervalMs (#86887)
ChiaHungDuan Mar 28, 2024
eee8c61
[LangRef] Try to clarify some Metadata semantics (#81948)
slinder1 Mar 28, 2024
bbbcc1d
Reapply "[clang][nullability] allow _Nonnull etc on nullable class ty…
sam-mccall Mar 28, 2024
9ea0396
[RISCV] Extend pattern matches involving shNadd to support disjoint o…
preames Mar 28, 2024
5906b1a
[APINotes][test] Fix permissions of a file copied from a source tree
gribozavr Mar 28, 2024
d0b4780
[nfc][docs]Generalize header description and ascii art for indexed pr…
minglotus-6 Mar 28, 2024
07a1fbe
[docs][TypeProf]Update instrumentation file format document (#83309)
minglotus-6 Mar 28, 2024
7a87902
[scudo] Fix stack depot validation. (#87024)
cferris1000 Mar 29, 2024
338be79
[SLP][NFC]Add a test with the incorrect sign extension of first ext
alexey-bataev Mar 29, 2024
01e02e0
[SLP]Fix PR87011: Do not assume that initial ext/trunc nodes can be
alexey-bataev Mar 29, 2024
39e8137
[NFC] [HWASan] add example for ring buffer wrap (#87029)
fmayer Mar 29, 2024
89bae85
[bazel] Fix lit tests with python 3.11+ (#87022)
keith Mar 29, 2024
1d99d7a
[SampleFDO][NFC] Refactoring SampleProfileMatcher (#86988)
wlei-llvm Mar 29, 2024
c64a328
[ProfileData] Use size_t in PatchItem (NFC) (#87014)
kazutakahirata Mar 29, 2024
e005a09
[RISCV][TypePromotion] Dont generate truncs if PromotedType is greate…
svs-quic Mar 29, 2024
ba6b2d2
[LLDB] Add APFloat helper functions to Scalar class. (#86862)
cmtice Mar 29, 2024
7d3924c
[IR] Add nowrap flags for trunc instruction (#85592)
elhewaty Mar 29, 2024
235d684
[C++20] [Modules] [Reduced BMI] Don't record declarations in functions
ChuanqiXu9 Mar 29, 2024
28cc244
[AutoBump] Merge with 235d6841
cferry-AMD Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .ci/monolithic-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o pipefail

MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
rm -rf ${BUILD_DIR}
rm -rf "${BUILD_DIR}"

ccache --zero-stats

Expand All @@ -37,8 +37,8 @@ projects="${1}"
targets="${2}"

echo "--- cmake"
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
Expand Down
6 changes: 3 additions & 3 deletions .ci/monolithic-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o pipefail
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"

rm -rf ${BUILD_DIR}
rm -rf "${BUILD_DIR}"

if [[ -n "${CLEAR_CACHE:-}" ]]; then
echo "clearing sccache"
Expand All @@ -37,14 +37,14 @@ projects="${1}"
targets="${2}"

echo "--- cmake"
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt

# The CMAKE_*_LINKER_FLAGS to disable the manifest come from research
# on fixing a build reliability issue on the build server, please
# see https://github.com/llvm/llvm-project/pull/82393 and
# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
# for further information.
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
Expand Down
6 changes: 3 additions & 3 deletions bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3547,7 +3547,7 @@ MCSymbol *BinaryFunction::getSymbolForEntryID(uint64_t EntryID) {
if (!isMultiEntry())
return nullptr;

uint64_t NumEntries = 0;
uint64_t NumEntries = 1;
if (hasCFG()) {
for (BinaryBasicBlock *BB : BasicBlocks) {
MCSymbol *EntrySymbol = getSecondaryEntryPointSymbol(*BB);
Expand Down Expand Up @@ -3580,7 +3580,7 @@ uint64_t BinaryFunction::getEntryIDForSymbol(const MCSymbol *Symbol) const {
return 0;

// Check all secondary entries available as either basic blocks or lables.
uint64_t NumEntries = 0;
uint64_t NumEntries = 1;
for (const BinaryBasicBlock *BB : BasicBlocks) {
MCSymbol *EntrySymbol = getSecondaryEntryPointSymbol(*BB);
if (!EntrySymbol)
Expand All @@ -3589,7 +3589,7 @@ uint64_t BinaryFunction::getEntryIDForSymbol(const MCSymbol *Symbol) const {
return NumEntries;
++NumEntries;
}
NumEntries = 0;
NumEntries = 1;
for (const std::pair<const uint32_t, MCSymbol *> &KV : Labels) {
MCSymbol *EntrySymbol = getSecondaryEntryPointSymbol(KV.second);
if (!EntrySymbol)
Expand Down
40 changes: 24 additions & 16 deletions bolt/lib/Profile/YAMLProfileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ extern llvm::cl::opt<bool> ProfileUseDFS;
namespace llvm {
namespace bolt {

/// Set CallSiteInfo destination fields from \p Symbol and return a target
/// BinaryFunction for that symbol.
static const BinaryFunction *setCSIDestination(const BinaryContext &BC,
yaml::bolt::CallSiteInfo &CSI,
const MCSymbol *Symbol) {
CSI.DestId = 0; // designated for unknown functions
CSI.EntryDiscriminator = 0;
if (Symbol) {
uint64_t EntryID = 0;
if (const BinaryFunction *const Callee =
BC.getFunctionForSymbol(Symbol, &EntryID)) {
CSI.DestId = Callee->getFunctionNumber();
CSI.EntryDiscriminator = EntryID;
return Callee;
}
}
return nullptr;
}

yaml::bolt::BinaryFunctionProfile
YAMLProfileWriter::convert(const BinaryFunction &BF, bool UseDFS) {
yaml::bolt::BinaryFunctionProfile YamlBF;
Expand Down Expand Up @@ -79,31 +98,20 @@ YAMLProfileWriter::convert(const BinaryFunction &BF, bool UseDFS) {
continue;
for (const IndirectCallProfile &CSP : ICSP.get()) {
StringRef TargetName = "";
CSI.DestId = 0; // designated for unknown functions
CSI.EntryDiscriminator = 0;
if (CSP.Symbol) {
const BinaryFunction *Callee = BC.getFunctionForSymbol(CSP.Symbol);
if (Callee) {
CSI.DestId = Callee->getFunctionNumber();
TargetName = Callee->getOneName();
}
}
const BinaryFunction *Callee = setCSIDestination(BC, CSI, CSP.Symbol);
if (Callee)
TargetName = Callee->getOneName();
CSI.Count = CSP.Count;
CSI.Mispreds = CSP.Mispreds;
CSTargets.emplace_back(TargetName, CSI);
}
} else { // direct call or a tail call
uint64_t EntryID = 0;
CSI.DestId = 0;
StringRef TargetName = "";
const MCSymbol *CalleeSymbol = BC.MIB->getTargetSymbol(Instr);
const BinaryFunction *const Callee =
BC.getFunctionForSymbol(CalleeSymbol, &EntryID);
if (Callee) {
CSI.DestId = Callee->getFunctionNumber();
CSI.EntryDiscriminator = EntryID;
setCSIDestination(BC, CSI, CalleeSymbol);
if (Callee)
TargetName = Callee->getOneName();
}

auto getAnnotationWithDefault = [&](const MCInst &Inst, StringRef Ann) {
return BC.MIB->getAnnotationWithDefault(Instr, Ann, 0ull);
Expand Down
70 changes: 65 additions & 5 deletions bolt/lib/Rewrite/LinuxKernelRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ class LinuxKernelRewriter final : public MetadataRewriter {
/// Size of bug_entry struct.
static constexpr size_t BUG_TABLE_ENTRY_SIZE = 12;

/// List of bug entries per function.
using FunctionBugListType =
DenseMap<BinaryFunction *, SmallVector<uint32_t, 2>>;
FunctionBugListType FunctionBugList;

/// .pci_fixup section.
ErrorOr<BinarySection &> PCIFixupSection = std::errc::bad_address;
static constexpr size_t PCI_FIXUP_ENTRY_SIZE = 16;
Expand Down Expand Up @@ -254,7 +259,9 @@ class LinuxKernelRewriter final : public MetadataRewriter {
Error readParaInstructions();
Error rewriteParaInstructions();

/// __bug_table section handling.
Error readBugTable();
Error rewriteBugTable();

/// Do no process functions containing instruction annotated with
/// \p Annotation.
Expand Down Expand Up @@ -339,6 +346,9 @@ class LinuxKernelRewriter final : public MetadataRewriter {
if (Error E = rewriteStaticKeysJumpTable())
return E;

if (Error E = rewriteBugTable())
return E;

return Error::success();
}

Expand Down Expand Up @@ -1164,15 +1174,17 @@ Error LinuxKernelRewriter::rewriteParaInstructions() {
}

/// Process __bug_table section.
/// This section contains information useful for kernel debugging.
/// This section contains information useful for kernel debugging, mostly
/// utilized by WARN()/WARN_ON() macros and deprecated BUG()/BUG_ON().
///
/// Each entry in the section is a struct bug_entry that contains a pointer to
/// the ud2 instruction corresponding to the bug, corresponding file name (both
/// pointers use PC relative offset addressing), line number, and flags.
/// The definition of the struct bug_entry can be found in
/// `include/asm-generic/bug.h`
///
/// NB: find_bug() uses linear search to match an address to an entry in the bug
/// table. Hence there is no need to sort entries when rewriting the table.
/// `include/asm-generic/bug.h`. The first entry in the struct is an instruction
/// address encoded as a PC-relative offset. In theory, it could be an absolute
/// address if CONFIG_GENERIC_BUG_RELATIVE_POINTERS is not set, but in practice
/// the kernel code relies on it being a relative offset on x86-64.
Error LinuxKernelRewriter::readBugTable() {
BugTableSection = BC.getUniqueSectionByName("__bug_table");
if (!BugTableSection)
Expand Down Expand Up @@ -1215,6 +1227,8 @@ Error LinuxKernelRewriter::readBugTable() {
" referenced by bug table entry %d",
InstAddress, EntryID);
BC.MIB->addAnnotation(*Inst, "BugEntry", EntryID);

FunctionBugList[BF].push_back(EntryID);
}
}

Expand All @@ -1223,6 +1237,52 @@ Error LinuxKernelRewriter::readBugTable() {
return Error::success();
}

/// find_bug() uses linear search to match an address to an entry in the bug
/// table. Hence, there is no need to sort entries when rewriting the table.
/// When we need to erase an entry, we set its instruction address to zero.
Error LinuxKernelRewriter::rewriteBugTable() {
if (!BugTableSection)
return Error::success();

for (BinaryFunction &BF : llvm::make_second_range(BC.getBinaryFunctions())) {
if (!BC.shouldEmit(BF))
continue;

if (!FunctionBugList.count(&BF))
continue;

// Bugs that will be emitted for this function.
DenseSet<uint32_t> EmittedIDs;
for (BinaryBasicBlock &BB : BF) {
for (MCInst &Inst : BB) {
if (!BC.MIB->hasAnnotation(Inst, "BugEntry"))
continue;
const uint32_t ID = BC.MIB->getAnnotationAs<uint32_t>(Inst, "BugEntry");
EmittedIDs.insert(ID);

// Create a relocation entry for this bug entry.
MCSymbol *Label =
BC.MIB->getOrCreateInstLabel(Inst, "__BUG_", BC.Ctx.get());
const uint64_t EntryOffset = (ID - 1) * BUG_TABLE_ENTRY_SIZE;
BugTableSection->addRelocation(EntryOffset, Label, ELF::R_X86_64_PC32,
/*Addend*/ 0);
}
}

// Clear bug entries that were not emitted for this function, e.g. as a
// result of DCE, but setting their instruction address to zero.
for (const uint32_t ID : FunctionBugList[&BF]) {
if (!EmittedIDs.count(ID)) {
const uint64_t EntryOffset = (ID - 1) * BUG_TABLE_ENTRY_SIZE;
BugTableSection->addRelocation(EntryOffset, nullptr, ELF::R_X86_64_PC32,
/*Addend*/ 0);
}
}
}

return Error::success();
}

/// The kernel can replace certain instruction sequences depending on hardware
/// it is running on and features specified during boot time. The information
/// about alternative instruction sequences is stored in .altinstructions
Expand Down
21 changes: 16 additions & 5 deletions bolt/test/X86/linux-bug-table.s
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# REQUIRES: system-linux

## Check that BOLT correctly parses the Linux kernel __bug_table section.
## Check that BOLT correctly parses and updates the Linux kernel __bug_table
## section.

# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
# RUN: %clang %cflags -nostdlib %t.o -o %t.exe \
# RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie

## Verify bug entry bindings to instructions.

# RUN: llvm-bolt %t.exe --print-normalized -o %t.out | FileCheck %s
# RUN: llvm-bolt %t.exe --print-normalized --print-only=_start -o %t.out \
# RUN: --eliminate-unreachable=1 --bolt-info=0 | FileCheck %s

## Verify bug entry bindings again after unreachable code elimination.

# RUN: llvm-bolt %t.out -o %t.out.1 --print-only=_start --print-normalized \
# RUN: |& FileCheck --check-prefix=CHECK-REOPT %s

# CHECK: BOLT-INFO: Linux kernel binary detected
# CHECK: BOLT-INFO: parsed 2 bug table entries
Expand All @@ -17,17 +24,21 @@
.globl _start
.type _start, %function
_start:
# CHECK: Binary Function "_start"
nop
jmp .L1
.L0:
ud2
# CHECK: ud2
# CHECK-SAME: BugEntry: 1
nop
.L1:
ud2
# CHECK: ud2
# CHECK-SAME: BugEntry: 2

## Only the second entry should remain after the first pass.

# CHECK-REOPT: ud2
# CHECK-REOPT-SAME: BugEntry: 2

ret
.size _start, .-_start

Expand Down
74 changes: 74 additions & 0 deletions bolt/test/X86/yaml-secondary-entry-discriminator.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# This reproduces a bug with BOLT setting incorrect discriminator for
# secondary entry points in YAML profile.

# REQUIRES: system-linux
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
# RUN: link_fdata %s %t.o %t.fdata
# RUN: llvm-strip --strip-unneeded %t.o
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
# RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata -w %t.yaml --print-profile \
# RUN: --print-only=main | FileCheck %s --check-prefix=CHECK-CFG
# RUN: FileCheck %s -input-file %t.yaml
# CHECK: - name: main
# CHECK-NEXT: fid: 2
# CHECK-NEXT: hash: 0xADF270D550151185
# CHECK-NEXT: exec: 0
# CHECK-NEXT: nblocks: 4
# CHECK-NEXT: blocks:
# CHECK: - bid: 1
# CHECK-NEXT: insns: 1
# CHECK-NEXT: hash: 0x36A303CBA4360014
# CHECK-NEXT: calls: [ { off: 0x0, fid: 1, disc: 1, cnt: 1 } ]
# CHECK: - bid: 2
# CHECK-NEXT: insns: 5
# CHECK-NEXT: hash: 0x8B2F5747CD0019
# CHECK-NEXT: calls: [ { off: 0x0, fid: 1, disc: 1, cnt: 1, mis: 1 } ]

# Make sure that the profile is attached correctly
# RUN: llvm-bolt %t.exe -o %t.out --data %t.yaml --print-profile \
# RUN: --print-only=main | FileCheck %s --check-prefix=CHECK-CFG

# CHECK-CFG: Binary Function "main" after attaching profile {
# CHECK-CFG: callq secondary_entry # Offset: [[#]] # Count: 1
# CHECK-CFG: callq *%rax # Offset: [[#]] # CallProfile: 1 (1 misses) :
# CHECK-CFG-NEXT: { secondary_entry: 1 (1 misses) }

.globl func
.type func, @function
func:
# FDATA: 0 [unknown] 0 1 func 0 1 0
.cfi_startproc
pushq %rbp
movq %rsp, %rbp
.globl secondary_entry
secondary_entry:
popq %rbp
retq
nopl (%rax)
.cfi_endproc
.size func, .-func

.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
movq %rsp, %rbp
subq $16, %rsp
movl $0, -4(%rbp)
testq %rax, %rax
jne Lindcall
Lcall:
call secondary_entry
# FDATA: 1 main #Lcall# 1 secondary_entry 0 1 1
Lindcall:
callq *%rax
# FDATA: 1 main #Lindcall# 1 secondary_entry 0 1 1
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
# For relocations against .text
call exit
.cfi_endproc
.size main, .-main
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/support/Trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ bool enabled();
class Span {
public:
Span(llvm::Twine Name);
/// Records span's duration in seconds to \p LatencyMetric with \p Name as the
/// label.
/// Records span's duration in milliseconds to \p LatencyMetric with \p Name
/// as the label.
Span(llvm::Twine Name, const Metric &LatencyMetric);
~Span();

Expand Down
Loading