Skip to content

Ferdinand.llvm bump april 23 #31

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2307 commits
Select commit Hold shift + click to select a range
2c23b6f
[clang-format] Correctly indent comment above finalized PPDirective
owenca Apr 13, 2023
aa1c22b
[ELF] Fix SysV hash function.
urnathan Apr 9, 2023
0b88aa5
[libc++] Re-generate the ignore-format file with the CI's clang-format
ldionne Apr 14, 2023
3dfdb00
[github] update action and use major version
VoltrexKeyva Apr 14, 2023
d6a89d1
ValueTracking: Handle non-splat vectors in computeKnownFPClass
arsenm Apr 10, 2023
63ade35
ValueTracking: Add baseline test for trunc computeKnownFPClass handling
arsenm Apr 9, 2023
1aaf618
ValueTracking: Implement computeKnownFPClass for llvm.trunc
arsenm Apr 9, 2023
6b8d0ae
ValueTracking: Add baseline test for computeKnownFPClass fpext handling
arsenm Apr 9, 2023
8148e77
ValueTracking: Add baseline test for arithmetic.fence computeKnownFPC…
arsenm Apr 9, 2023
802e8e6
ValueTracking: Implement computeKnownFPClass for arithmetic.fence
arsenm Apr 9, 2023
50bebaa
[test][sanitizer] Add stress test for pthread_create
vitalybuka Apr 14, 2023
8053983
ValueTracking: Handle freeze in computeKnownFPClass
arsenm Apr 13, 2023
b52ebe6
[SLP][NFC] Remove Limit from tryToVectorizeSequence() arguments.
vporpo Apr 14, 2023
de04cee
[Clang] Fix defaulted equality operator so that it does not attempt t…
shafik Apr 14, 2023
7c9eef0
Revert ""Reland "[hwasan] Provide aliases for c allocation functions …
PiJoules Apr 14, 2023
9fcd6eb
[StringView] remove consumeFront
nickdesaulniers Apr 14, 2023
cfc7a0e
[libc] Add implementation of getchar
michaelrj-google Apr 14, 2023
2fef326
[Demangle] replace use of llvm::StringView w/ std::string_view
nickdesaulniers Apr 14, 2023
c923a7c
[MCParser] Reject processor-specific section flags not known by the c…
MaskRay Apr 14, 2023
a06f565
[flang] Remove `ignoring all compiler directives` warning
vdonaldson Apr 12, 2023
6753fcb
Account for PATCHABLE instrs in Branch Relaxation
dhoekwater Apr 11, 2023
97e805d
[ValueTracking] Add more tests for `shl` isKnownNonZero; NFC
goldsteinn Apr 9, 2023
7644d28
[ValueTracking] Use maximum shift count in `shl` when determining if …
goldsteinn Apr 9, 2023
59b53a6
[ValueTracking] Add `shl nsw %val, %cnt != 0` if `%val != 0`.
goldsteinn Apr 14, 2023
ddddfb7
[Demangle] fix windows build
nickdesaulniers Apr 14, 2023
1e63b01
[NFC][lsan] Move SetCurrentThread call
vitalybuka Apr 14, 2023
44a94a6
[asan][test] Fix use-after-scope-capture test after D148269
ilovepi Apr 14, 2023
fcbe938
[MC] Add section flag 'l' for SHF_X86_64_LARGE
aeubanks Apr 14, 2023
99e0f82
[NewPM] Use PassID instead of pass name
pchintalapudi Apr 15, 2023
972b431
Revert D148384 "[Demangle] replace use of llvm::StringView w/ std::st…
MaskRay Apr 15, 2023
7c87037
[hwasan] [test] fix test broken by argument promotion pass
fmayer Apr 15, 2023
67a1278
[RISCV] Move RISCVInstrInfoZihintntl.td include out of the vendor ext…
topperc Apr 15, 2023
d10c06a
[TableGen] Make InlinePatternFragments a member of TreePatternNode ag…
topperc Apr 15, 2023
606b74b
Guard against dereferencing a nullptr
akshaykhadse Apr 15, 2023
8056845
[GISel] Legalize G_FSUB to G_FADD + G_FNEG even if G_FNEG is illegal
s-barannikov Apr 13, 2023
f5486dc
[NFC][sanitizer] Return nullptr instead of 0
vitalybuka Apr 15, 2023
0a8d499
[test][sanitizer] Add another stress test for pthread_create
vitalybuka Apr 15, 2023
227d265
[NFC][lsan] Add GetCurrentThreadId wrapper for GetCurrentThread
vitalybuka Apr 14, 2023
dd3e8d2
[InstSimplify] Precommit tests for dominate conditions are not single…
bcl5980 Apr 15, 2023
2ebc838
Fix uninitialized pointer members in Target/X86
akshaykhadse Apr 15, 2023
c8f90b0
[clang-tidy] Avoid float compare in bugprone-incorrect-roundings
PiotrZSL Apr 15, 2023
6c4064e
[clang-tidy] Add support for long double in bugprone-incorrect-roundings
PiotrZSL Apr 15, 2023
80f8271
[RISCV] Optimize multiplication with immediates
benshi001 Apr 15, 2023
6c4b520
[libunwind] Sync Unwind_AppleExtras.cpp with downstream version
ldionne Apr 14, 2023
d43af17
[clang-tidy] Apply cppcoreguidelines-avoid-capture-default-when-captu…
carlosgalvezp Apr 14, 2023
78d1115
[clang] Mark CWG2331 as N/A
Endilll Apr 15, 2023
5a6be52
[clang-tidy] Exclude template instantiations in modernize-use-override
PiotrZSL Apr 15, 2023
7f687e2
[gn build] Port eedbe81b1c6d
llvmgnsyncbot Apr 15, 2023
7cc4da4
[clang-tidy] Fix typedefs handling in bugprone-dangling-handle
PiotrZSL Apr 15, 2023
1da7e42
[libc++] Removes Clang 14 support.
mordante Apr 14, 2023
0e4c787
Revert "Revert "[CMake] Bumps minimum version to 3.20.0.""
mordante Apr 15, 2023
dfac908
[NFC][libc++] Removes sliceExpr friend.
mordante Apr 14, 2023
5961c80
[clang-tidy][NFC] Improve doc of cppcoreguidelines-misleading-capture…
carlosgalvezp Apr 15, 2023
3c9d976
[libc] Add `fetch_or` to the atomic interface
jhuber6 Apr 11, 2023
df2b604
[clang-tidy] Add misc-header-include-cycle check
PiotrZSL Apr 15, 2023
1f29f82
[Matrix] Split off transpose + dot product tests.
fhahn Apr 15, 2023
c73f169
Revert "[clang-tidy] Add misc-header-include-cycle check"
PiotrZSL Apr 15, 2023
cf7ffd1
[clang-tidy][NFC] Fix format of header file comment in MisleadingCapt…
carlosgalvezp Apr 15, 2023
a24f0e6
Revert "[NFC][libc++] Removes sliceExpr friend."
mordante Apr 15, 2023
b0eb4a9
[NFC][libc++] Removes incorrect sliceExpr friend.
mordante Apr 15, 2023
a4d0476
[clang-tidy] Fix cppcoreguidelines-narrowing-conversions false positive
njames93 Apr 15, 2023
a8a71b3
[clang][NFC] Fix DR test ordering
Endilll Apr 15, 2023
e3d30e7
[JITLink][ELF][x86-64] Don't use intermediate edge-kinds in ELF/x86-6…
lhames Apr 15, 2023
5f052c0
Revert "Revert "Revert "[CMake] Bumps minimum version to 3.20.0."""
mordante Apr 15, 2023
072d2a6
[InstCombine] Generate better code for std::bit_floor from libstdc++
kazutakahirata Apr 15, 2023
553f486
[JITLink][X86] Rename X86 test directory to x86-64, update test names.
lhames Apr 15, 2023
82d1115
[Target] Use range-based for loops (NFC)
kazutakahirata Apr 15, 2023
577bad7
[lldb] Use StringMap::contains (NFC)
kazutakahirata Apr 15, 2023
b7dbf72
Use isNegative (NFC)
kazutakahirata Apr 15, 2023
a294da5
[InstCombine] Precommit a test
kazutakahirata Apr 15, 2023
4e71fcd
[clang-tidy] Fix crash in --dump-config
njames93 Apr 15, 2023
c2cfc24
[FuzzMutate] RandomIRBuilder has more source and sink type now.
DataCorrupted Dec 13, 2022
1af4599
[FuzzMutate] Update unit testing
DataCorrupted Apr 15, 2023
b84b961
[mlir][sparse][gpu] generate single module, unique kernel names
aartbik Apr 15, 2023
13e7d92
[mlir][tensor][bufferize] Fix dealloc placement in scf.forall op
matthias-springer Apr 15, 2023
0b74cec
[clang-repl] JITTargetAddress --> ExecutorAddr, NFC
junaire Apr 15, 2023
9508de4
[JITLink][aarch64] Update aarch64 test names
lhames Apr 15, 2023
47107f0
[JITLink][x86-64] Implement ELF::R_X86_64_16.
lhames Apr 16, 2023
299a4cf
[JITLink][ELF][x86-64] Replace R_X86_64_32 yaml testcase with asm ver…
lhames Apr 16, 2023
540cd79
[JITLink][x86-64] Add x86_64::Pointer8 edge kind, ELF::R_X86_64_8 rel…
lhames Apr 16, 2023
4448149
[LoongArch] Use empty debug location for register spill/reload
benshi001 Apr 15, 2023
b7c025a
[JITLink][ELF][x86-64] Implement ELF::R_X86_64_NONE.
lhames Apr 16, 2023
ad6ac6a
[RISCV] Fix a crash in RISCVGatherScatterLowering
preames Apr 16, 2023
9928ece
[clang-tools-extra] Use llvm::is_contained (NFC)
kazutakahirata Apr 16, 2023
c78a46f
[llvm] Apply fixes from readability-redundant-control-flow (NFC)
kazutakahirata Apr 16, 2023
10bf59d
[IR] Drop unnecessary const from a return type (NFC)
kazutakahirata Apr 16, 2023
412e913
Remove redundant initialization of std::optional (NFC)
kazutakahirata Apr 16, 2023
43bff74
Apply fixes from performance-faster-string-find (NFC)
kazutakahirata Apr 16, 2023
a7babc5
[clang-tidy] Add bugprone-non-zero-enum-to-bool-conversion check
PiotrZSL Apr 16, 2023
9a33125
[gn build] Port 3bf322e69d5c
llvmgnsyncbot Apr 16, 2023
b7d978e
[clang-format] Dont interpret variable named interface as keyword for…
sousajo-cc Apr 16, 2023
756af6d
[clang-tidy] Fix handling of UseAssignment option in cppcoreguideline…
PiotrZSL Apr 16, 2023
2a75d33
[libc++] Add hide_from_abi check for classes
philnik777 Jan 23, 2023
ac538c0
[VPlan] Check VPValue step in isCanonical (NFCI).
fhahn Apr 16, 2023
7c1a737
[SROA] Remove UB-implying metadata when promoting speculative instruc…
dianqk Apr 16, 2023
e50f26a
[VPlan] Unify Value2VPValue and VPExternalDefs maps (NFCI).
fhahn Apr 16, 2023
0b69b30
[Transforms] Apply fixes from performance-for-range-copy (NFC)
kazutakahirata Apr 16, 2023
bd7b65b
[flang] Apply fixes from readability-string-compare (NFC)
kazutakahirata Apr 16, 2023
5787c65
[CMake] Reorder and reformat deps
chapuni Apr 16, 2023
01b6919
[CMake] Cleanup deps
chapuni Apr 16, 2023
a468bc4
[clang-tidy] Prevent `llvmlibc-inline-function-decl` triggering on la…
jhuber6 Apr 17, 2023
37d5522
[Scalar] Use range-based for loops (NFC)
kazutakahirata Apr 16, 2023
bc0443f
Revert "[FuzzMutate] RandomIRBuilder has more source and sink type now."
DataCorrupted Apr 16, 2023
50ff2bb
llvm/module.modulemap: Exclude `Support/Host.h`
chapuni Apr 16, 2023
95cfceb
llvm/module.modulemap: Add `Demangle` in `LLVM_Utils`
chapuni Apr 16, 2023
e4a1079
llvm/module.modulemap: Exclude `CodeGenPassBuilder.h` out of `LLVM_Ba…
chapuni Apr 16, 2023
ddf3be1
[llvm] Remove redundant string initialization (NFC)
kazutakahirata Apr 16, 2023
95a9a0a
[MCParser] Modernize IntelExpr (NFC)
kazutakahirata Apr 16, 2023
162cae6
[flang] Refine how Clang dependencies are expressed #58663
da-viper Apr 16, 2023
1a99656
[TargetParser] Expose Triple::getObjectFormatTypeName.
lhames Apr 16, 2023
222902e
[Support] Modernize TimeRecord (NFC)
kazutakahirata Apr 16, 2023
0c8b238
[AMDGPU] Don't assert that image intrinsics are supported
jayfoad Apr 12, 2023
9bccb67
[Analysis] Modernize CallStackTrie (NFC)
kazutakahirata Apr 16, 2023
1ceee3e
[ORC][LLJIT] Add LLJITBuilder convenience function to enable debugger…
lhames Apr 16, 2023
3ef1c56
[InstCombine] Modernize InstCombineOptions (NFC)
kazutakahirata Apr 16, 2023
c242f76
[IPO] Modernize OpenMPOptPass and OpenMPOptCGSCCPass (NFC)
kazutakahirata Apr 16, 2023
e000d88
[AMDGPU] Modernize Status and BlockData (NFC)
kazutakahirata Apr 16, 2023
e281907
[clang] Modernize Vec (NFC)
kazutakahirata Apr 16, 2023
4b79a4d
[clang] Modernize ASTConsumer (NFC)
kazutakahirata Apr 16, 2023
4979815
[clang] Modernize EvalStatus (NFC)
kazutakahirata Apr 16, 2023
64a3f8e
[clang] Modernize OptRemark (NFC)
kazutakahirata Apr 16, 2023
564c790
[clang] Modernize ReturnAdjustment and ThisAdjustment (NFC)
kazutakahirata Apr 16, 2023
3f585a0
[clang] Modernize ModuleDeclSeq (NFC)
kazutakahirata Apr 16, 2023
14e4537
[clang-format] Handle Verilog assertions and loops
eywdck2l Apr 16, 2023
bd80e69
[M68k] Fix printing of immediate in `M68kOperand::print`
ids1024 Apr 16, 2023
3f55f3b
[mlir][math] Properly disable ctlz conversion in MathToFuncs.
vzakhari Apr 16, 2023
056b677
[ADT] Apply fixes from modernize-type-traits (NFC)
kazutakahirata Apr 16, 2023
63d579b
[clang-format][NFC] Output tokens on test assert
eywdck2l Apr 16, 2023
95c1ed5
[Coverity] Add assert for assumption.
LuoYuanke Apr 17, 2023
d2b6304
[JITLink][ELF][x86-64] Add support for R_X86_64_GOTPC32 relocation.
lhames Apr 17, 2023
fcafbd6
[clang-format] Fix regression with AlignTrailingComments set to true
owenca Apr 16, 2023
3659982
[TableGen] Avoid extra IntrusiveRefCntPtr when calling SimplifyTree. NFC
topperc Apr 17, 2023
333d003
[Support] Apply fixes from modernize-type-trait (NFC)
kazutakahirata Apr 17, 2023
19693af
[m68k] Add basic support for floating point arithmetic instruction
0x59616e Apr 17, 2023
a078177
[TableGen] Use PointerUnion for Operator and Val in TreePatternNode.
topperc Apr 17, 2023
9188e2f
[LLDB] Fix broken Windows unittests build
omjavaid Apr 17, 2023
36e6301
[clang-rename] Exit gracefully when no input provided
xgupta Apr 15, 2023
efca33b
Revert "[clang-rename] Exit gracefully when no input provided"
xgupta Apr 17, 2023
35d96fa
[libc][NFC] Remove use of StreamWrapper from math differential tests.
Apr 16, 2023
0dc22c1
[flang][hlfir] Fix hlfir.set_length codegen
jeanPerier Apr 17, 2023
a4be539
[flang][hlfir] Preserve hlfir.assign in the bufferize-hlfir pass
jeanPerier Apr 17, 2023
8c7cd3e
[clang-tidy] Add alias cppcoreguidelines-use-default-member-init
carlosgalvezp Apr 16, 2023
988b222
[builtins] Fix -Wshift-count-overflow warnings for targets with 16-bi…
mikaelholmen Apr 4, 2023
46746f7
[Analysis] Remove DA & LegacyDA
Pierre-vh Apr 12, 2023
9131467
[clang][NFC] Make parameters to NoteOverloadCandidate const
tbaederr Apr 15, 2023
02a32ca
[AVR] Fix an issue of writing 16-bit ports
benshi001 Jan 14, 2023
f96f5f8
[lldb] Change some pointers to refs in register printing code
DavidSpickett Mar 13, 2023
dae00b7
[clang][NFC] Use range-for loop in SemaLookup.cpp
tbaederr Apr 15, 2023
c0e241d
remove useless call in MIRSampleProfile.cpp
XinWang10 Apr 17, 2023
1df1ee2
[ConstraintElimination] Transfer info from sgt %a, %b to ugt %a, %b i…
Apr 14, 2023
855506d
[LV] Don't sink scalar instructions that may read from memory.
fhahn Apr 17, 2023
8c32ce5
Fix uninitialized pointer members in CodeGen
akshaykhadse Apr 17, 2023
3fe54ba
[AArch64] Add tests for vacgt/vacge. NFC
davemgreen Apr 17, 2023
bc60be1
[OpenMP][MLIR] Prevent constant hoisting out of target regions
skatrak Apr 14, 2023
fe88805
[DAGCombiner] Fold add (mul x, C), x to mul x, C+1
nikic Apr 14, 2023
787f3bf
[libc++] Add annotation for arm64e in the strong_order test for long …
ldionne Apr 17, 2023
2810abc
[X86] combinePTESTCC - only fold TESTZ(OR(LO(X),HI(X)),OR(LO(Y),HI(Y)…
RKSimon Apr 17, 2023
2b55eb9
[LoopVectorize] Take vscale into account when deciding to create epil…
david-arm Apr 3, 2023
1923f84
[GVN] Adjust metadata for coerced load CSE
nikic Apr 14, 2023
c124d5b
[LV] Add users to recurrence tests to make sure they are not removable.
fhahn Apr 17, 2023
821be45
Revert "ValueTracking: Handle freeze in computeKnownFPClass"
nikic Apr 17, 2023
30bf634
[Pipelines] Add LoopSink and DivRemPairs to LTO post-link pipeline
nikic Apr 14, 2023
ab2a97c
[mlir] Remove unused using llvm::Twine declaration (NFC).
akuegel Apr 17, 2023
9fe795a
[VPlan] Mark recurrence recipes as not having side-effects.
fhahn Apr 17, 2023
914ed92
[mlir] Apply ClangTidy fix.
akuegel Apr 17, 2023
a9529f4
Remove several no longer needed includes. NFCI
bjope Apr 15, 2023
ff2d72a
[Vectorize] Clean up Transforms/Vectorize.h
bjope Apr 15, 2023
3724f9b
[Passes] Remove legacy PM versions of InstructionNamer and MetaRenamer
bjope Apr 16, 2023
eed5aaa
[Clang][X86] Change X86 cast intrinsics to use __builtin_nondetermini…
ManuelJBrito Apr 17, 2023
d65572e
[LV] Extend recurrence test coverage for sinking memory instructions.
fhahn Apr 17, 2023
303adcd
Reapply [SimplifyCFG][LICM] Preserve nonnull, range and align metadat…
nikic Mar 22, 2023
c7f33f7
Revert "[Passes] Remove legacy PM versions of InstructionNamer and Me…
bjope Apr 17, 2023
822597c
[clang] Do not crash after suggesting typo correction to constexpr if…
Fznamznon Apr 17, 2023
34a48ff
[VPlan] Remove uneeded NeedsVectorIV from VPWidenIntOrFpInduction.
fhahn Apr 17, 2023
39f9059
[LV] Regenreate check lines fr pr33706.ll
fhahn Apr 17, 2023
e5583a3
[RISCV] Fix RUN line in fixed-vectors-abs-vp.ll
lukel97 Apr 17, 2023
3694ac7
[X86] combinePTESTCC - fold TESTZ(OR(LO(X),HI(X)),OR(LO(Y),HI(Y))) ->…
RKSimon Apr 17, 2023
4fb114e
[libc][NFC] Standardize missing syscalls error messages.
mikhailramalho Apr 17, 2023
2b20b1b
[flang][hlfir] add hlfir.shape_of
tblah Mar 1, 2023
02b7910
[flang][hlfir] add hlfir.get_extent
tblah Apr 12, 2023
27c4a51
[flang][hlfir] get shape from HLFIR expr using hlfir.shape_of
tblah Mar 2, 2023
c871223
[flang][hlfir] get extents from hlfir.shape_of
tblah Mar 2, 2023
4c9f813
[flang][hlfir] lower hlfir.shape_of
tblah Mar 17, 2023
25f2464
[flang][hlfir] lower hlfir.get_extent to FIR
tblah Apr 13, 2023
409ea60
[clang] Add __is_trivially_equality_comparable
philnik777 Mar 29, 2023
5386453
[Support] Add MVT::getDoubleNumVectorElementsVT helper.
RKSimon Apr 17, 2023
40aa42f
[LoopDeletion] Don't delete loop exiting to EH pad (PR62160)
nikic Apr 17, 2023
7265f84
Constexpr evaluator should treat [[gnu::weak]] member pointer compari…
hazohelet Apr 17, 2023
11280c7
[InstSimplify] Precommit a test
PeixinQiao Apr 17, 2023
7fd522b
Speculatively fix a failing bot
AaronBallman Apr 17, 2023
5abcb24
[BOLT] Fix use-after-free in RewriteInstance::mapCodeSections
mtvec Apr 17, 2023
cdb7d69
[LLVM][OHOS] Use emulated TLS for OHOS platform
kpdev Apr 17, 2023
b5c8684
[libc] Add dependency on the loader for GPU tests
jhuber6 Apr 17, 2023
4984880
[libc][fix] Only use the object files when targeting NVPTX
jhuber6 Apr 17, 2023
74e0df6
[libcxxabi] [test] Use the correct printf formats for printing pointers
mstorsjo Apr 5, 2023
44a8e87
[mlir][openacc][NFC] Use assembly format for acc.loop
clementval Apr 17, 2023
e97df5f
PECOFF: consume errors properly
compnerd Apr 17, 2023
9279af3
[clangd] Use all inputs to SystemIncludeExtractor in cache key
kadircet Mar 27, 2023
a3fd936
[AArch64] Add a basic pattern for FACGE and FACGT
davemgreen Apr 17, 2023
31a7ce6
[libcxx] Replace find_executable with shutil.which
DavidSpickett Apr 17, 2023
88d6c44
Revert "[mlir][openacc][NFC] Use assembly format for acc.loop"
clementval Apr 17, 2023
70e03bd
[docs][LangRef] Added minor update inside the `frem`. Fix : #61653
aabhinavg1 Apr 17, 2023
c7181e5
[LV] Precommit test for D147963.
fhahn Apr 17, 2023
bc2d796
[AMDGPU] Don't select _SGPR forms of SMEM instructions on GFX9+
jayfoad Mar 10, 2023
31b0c05
[clang] Replace find_executable with shutil.which in creduce script
DavidSpickett Apr 17, 2023
31bbbf9
[libc][NFC] Move RandUtils.h to test/src/math.
Apr 17, 2023
7b2ff9e
Fix the indentation error.
aabhinavg1 Apr 17, 2023
48a11de
[libc][NFC] Remove the StreamWrapper class and use the new test logger.
Apr 14, 2023
a486444
[flang] REAL(KIND=3) and COMPLEX(KIND=3) descriptors
vdonaldson Apr 14, 2023
55c6f90
[AArch64][GISel] Add FP16 fcmp lowering
davemgreen Apr 17, 2023
02476fb
[Bazel] Move InstCombineTableGen from InstCombine to AMDGPUCodeGen
chapuni Apr 17, 2023
09f4de5
[mlir][sparse] implement index redution on dense level (for CSR)
Mar 24, 2023
0f65f7a
[ORC][LLJIT] Use JITLink by default on ELF/x86-64.
lhames Apr 17, 2023
9793aaf
[NFC][Assignment Tracking] Rename flag variable in Options.td
OCHyams Apr 17, 2023
192b730
[clang][cmake] Add options to pass in vcs repo and revision info
zhuhan0 Apr 10, 2023
39a809f
[libc] Add special handling for CUDA PTX features
jhuber6 Apr 17, 2023
4ccb9fd
Revert "[test][sanitizer] Add another stress test for pthread_create"
thurstond Apr 17, 2023
12913a2
[mlir][sparse] use macro to build common operations in LoopEmitter
Apr 4, 2023
079b378
[Parse] Remove TimeTraceScope for "ParseTemplate"
MaskRay Apr 17, 2023
08c7c5c
[DebugInfo] Fix file path separator when targeting windows.
ZequanWu Mar 30, 2023
db1e938
[BPF] Make sure ALU32 feature is set in MCSubtargetInfo for mcpu=v3
eddyz87 Apr 11, 2023
82e8383
Revert "[clang][cmake] Add options to pass in vcs repo and revision i…
zhuhan0 Apr 17, 2023
50fe18e
[Docs] Added RTTI, Run-time Type Information
John-Earnshaw Apr 17, 2023
c8cd948
[libc++][NFC] Remove some dead code in common_type
philnik777 Apr 16, 2023
209797b
[scudo] Descriptive Fucshia errors
Caslyn Apr 16, 2023
5c4d866
[FuncSpec] Consider constant struct arguments when specializing.
labrinea Mar 20, 2023
6fc858b
[mlir][sparse] enable more sparse convolution kernels.
Apr 4, 2023
0285754
[libc][NFC] Remove the unused FDReader testutil.
Apr 16, 2023
421dd4c
[memprof] Print out profile build ids in the error message.
snehasish Apr 14, 2023
8d70c10
Second try: [clang][cmake] Add options to pass in vcs repo and revisi…
zhuhan0 Apr 10, 2023
f1398b6
[flang] Complex numbers in function arguments on Windows
mmuetzel Apr 17, 2023
bd09af8
[clang][dataflow] Refine matching of optional types to anchor at top …
ymand Apr 14, 2023
7ec786e
[clang][dataflow] Drop optional model's dependency on libc++ internals.
ymand Apr 14, 2023
d8072b0
[lldb] Add support for MSP430 in LLDB.
asl Apr 17, 2023
231bdbe
Revert "[ADT] Apply fixes from modernize-type-traits (NFC)"
JDevlieghere Apr 17, 2023
65a5efb
[mlir][vector] Fix integer promotion type mismatch
antiagainst Apr 17, 2023
364c4f7
Revert "[lldb] Add support for MSP430 in LLDB."
asl Apr 17, 2023
ce6ca0e
[clang-format] CSharp don't allow there not to be a space between `is…
mydeveloperday Apr 17, 2023
b539175
[nfc][llvm] Replace pointer cast functions in PointerUnion by llvm ca…
shraiysh Apr 16, 2023
6b5f733
[JITLink][ELF] Check that ELF buffer has at least ELF::EI_NIDENT bytes.
lhames Apr 17, 2023
218c7da
[lldb] Fix TestObjectFileJSON and TestSymbolFileJSON
JDevlieghere Apr 17, 2023
49dee07
github: Add manual workflow to build and upload release binaries
str4d Apr 17, 2023
e6b828c
[libc] Update supported riscv libs
mikhailramalho Apr 17, 2023
5aa2c1b
Revert "[VPlan] Switch to checking sinking legality for recurrences i…
m-gupta Apr 17, 2023
6041085
[lldb] fix build issue on MSVC because of missing byte-swap builtins
ashay Apr 17, 2023
c075af5
[mlir][openacc][NFC] Use assembly format for acc.loop
clementval Apr 17, 2023
4325a06
[libc] Partial revert of "[libc] Update supported riscv libs"
mikhailramalho Apr 17, 2023
bd44b77
FXML.1923: PDLL support for native constraints with attribute results…
martin-luecke Apr 26, 2023
7af8e8c
Leftover conflict
May 4, 2023
b311c1b
Bring back interfacePass for LinalgDetensorize that got lost during m…
May 8, 2023
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/llvm-project-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
fetch-depth: 250
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
uses: hendrikmuhs/ccache-action@v1
with:
# A full build of llvm, clang, lld, and lldb takes about 250MB
# of ccache space. There's not much reason to have more than this,
Expand Down
113 changes: 113 additions & 0 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Release Binaries

on:
push:
tags:
- 'llvmorg-*'
workflow_dispatch:
inputs:
upload:
description: 'Upload binaries to the release page'
required: true
default: true
type: boolean
tag:
description: 'Tag to build'
required: true
type: string

permissions:
contents: read # Default everything to read-only

jobs:
prepare:
name: Prepare to build binaries
runs-on: ubuntu-22.04
if: github.repository == 'llvm/llvm-project'
outputs:
release-version: ${{ steps.validate-tag.outputs.release-version }}
release: ${{ steps.validate-tag.outputs.release }}
build-dir: ${{ steps.validate-tag.outputs.build-dir }}
rc-flags: ${{ steps.validate-tag.outputs.rc-flags }}
ref: ${{ steps.validate-tag.outputs.ref }}

steps:
- name: Checkout LLVM
uses: actions/checkout@v3

- name: Validate and parse tag
id: validate-tag
# In order for the test-release.sh script to run correctly, the LLVM
# source needs to be at the following location relative to the build dir:
# | X.Y.Z-rcN | ./rcN/llvm-project
# | X.Y.Z | ./final/llvm-project
#
# We also need to set divergent flags based on the release version:
# | X.Y.Z-rcN | -rc N -test-asserts
# | X.Y.Z | -final
run: |
tag="${{ github.ref_name }}"
trimmed=`echo ${{ inputs.tag }} | xargs`
[[ "$trimmed" != "" ]] && tag="$trimmed"
if [ -n "${{ inputs.upload }}" ]; then
upload="${{ inputs.upload }}"
else
upload="true"
fi
bash .github/workflows/set-release-binary-outputs.sh "${{ github.actor }}" "$tag" "$upload"

build-binaries:
name: ${{ matrix.target.triple }}
permissions:
contents: write # To upload assets to release.
needs: prepare
runs-on: ${{ matrix.target.runs-on }}
strategy:
fail-fast: false
matrix:
target:
- triple: x86_64-linux-gnu-ubuntu-22.04
runs-on: ubuntu-22.04-8x32
debian-build-deps: >
chrpath
gcc-multilib
ninja-build

steps:
- name: Checkout LLVM
uses: actions/checkout@v3
with:
ref: ${{ needs.prepare.outputs.ref }}
path: ${{ needs.prepare.outputs.build-dir }}/llvm-project

- name: Install Brew build dependencies
if: matrix.target.brew-build-deps != ''
run: brew install ${{ matrix.target.brew-build-deps }}

- name: Install Debian build dependencies
if: matrix.target.debian-build-deps != ''
run: sudo apt install ${{ matrix.target.debian-build-deps }}

- name: Set macOS build env variables
if: runner.os == 'macOS'
run: |
echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV

- name: Build and test release
run: |
${{ needs.prepare.outputs.build-dir }}/llvm-project/llvm/utils/release/test-release.sh \
-release ${{ needs.prepare.outputs.release }} \
${{ needs.prepare.outputs.rc-flags }} \
-triple ${{ matrix.target.triple }} \
-use-ninja \
-no-checkout \
-no-test-suite

- name: Upload binaries
if: ${{ always() && needs.prepare.outputs.upload == 'true' }}
run: |
${{ needs.prepare.outputs.build-dir }}/llvm-project/llvm/utils/release/github-upload-release.py \
--token ${{ github.token }} \
--release ${{ needs.prepare.outputs.release-version }} \
upload \
--files ${{ needs.prepare.outputs.build-dir }}/clang+llvm-${{ needs.prepare.outputs.release-version }}-${{ matrix.target.triple }}.tar.xz
8 changes: 7 additions & 1 deletion .github/workflows/release-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ jobs:

- name: Build Documentation
run: |
./llvm/utils/release/build-docs.sh -srcdir llvm
./llvm/utils/release/build-docs.sh -release ${{ steps.validate-tag.outputs.release-version }}
./llvm/utils/release/github-upload-release.py --token ${{ github.token }} --release ${{ steps.validate-tag.outputs.release-version }} upload --files *doxygen*.tar.xz

- name: Create Release Notes Artifact
uses: actions/download-artifact@v3
with:
name: release-notes
path: docs-build/html-export/

- name: Clone www-releases
if: ${{ !contains(steps.validate-tag.outputs.release-version, 'rc') }}
uses: actions/checkout@v3
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/set-release-binary-outputs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Usage: set-release-binary-outputs.sh <github_user> <tag> <upload>

set -e

if [ -z "$GITHUB_OUTPUT" ]; then
export GITHUB_OUTPUT=`mktemp`
echo "Warning: Environment variable GITHUB_OUTPUT is not set."
echo "Writing output variables to $GITHUB_OUTPUT"
fi

github_user=$1
tag=$2
upload=$3

if [[ "$github_user" != "tstellar" && "$github_user" != "tru" ]]; then
echo "ERROR: User not allowed: $github_user"
exit 1
fi
pattern='^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
echo "$tag" | grep -e $pattern
if [ $? != 0 ]; then
echo "ERROR: Tag '$tag' doesn't match pattern: $pattern"
exit 1
fi
release_version=`echo "$tag" | sed 's/llvmorg-//g'`
release=`echo "$release_version" | sed 's/-.*//g'`
build_dir=`echo "$release_version" | sed 's,^[^-]\+,final,' | sed 's,[^-]\+-rc\(.\+\),rc\1,'`
rc_flags=`echo "$release_version" | sed 's,^[^-]\+,-final,' | sed 's,[^-]\+-rc\(.\+\),-rc \1 -test-asserts,' | sed 's,--,-,'`
echo "release-version=$release_version" >> $GITHUB_OUTPUT
echo "release=$release" >> $GITHUB_OUTPUT
echo "build-dir=$build_dir" >> $GITHUB_OUTPUT
echo "rc-flags=$rc_flags" >> $GITHUB_OUTPUT
echo "upload=$upload" >> $GITHUB_OUTPUT
echo "ref=$tag" >> $GITHUB_OUTPUT
1 change: 1 addition & 0 deletions .mailmap
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ To get started with contributing, please take a look at the
[Contributing to LLVM](https://llvm.org/docs/Contributing.html) guide. It
describes how to get involved, raise issues and submit patches. Please note
that at the moment the LLVM project does not use GitHub pull requests.

## Getting in touch

Join the [LLVM Discourse forums](https://discourse.llvm.org/), [Discord
chat](https://discord.gg/xS7Z362), or #llvm IRC channel on
[OFTC](https://oftc.net/).

The LLVM project has adopted a [code of conduct](https://llvm.org/docs/CodeOfConduct.html) for
participants to all modes of communication within the project.
3 changes: 1 addition & 2 deletions bolt/include/bolt/Core/BinaryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -1227,8 +1227,7 @@ class BinaryContext {
Emitter = this->MCE.get();
SmallString<256> Code;
SmallVector<MCFixup, 4> Fixups;
raw_svector_ostream VecOS(Code);
Emitter->encodeInstruction(Inst, VecOS, Fixups, *STI);
Emitter->encodeInstruction(Inst, Code, Fixups, *STI);
return Code.size();
}

Expand Down
4 changes: 4 additions & 0 deletions bolt/include/bolt/Core/BinaryFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,10 @@ class BinaryFunction {
/// executions corresponding to this function.
uint64_t getRawBranchCount() const { return RawBranchCount; }

/// Set the profile data about the number of branch executions corresponding
/// to this function.
void setRawBranchCount(uint64_t Count) { RawBranchCount = Count; }

/// Return the execution count for functions with known profile.
/// Return 0 if the function has no profile.
uint64_t getKnownExecutionCount() const {
Expand Down
3 changes: 1 addition & 2 deletions bolt/lib/Core/BinaryContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2289,9 +2289,8 @@ bool BinaryContext::validateInstructionEncoding(

SmallString<256> Code;
SmallVector<MCFixup, 4> Fixups;
raw_svector_ostream VecOS(Code);

MCE->encodeInstruction(Inst, VecOS, Fixups, *STI);
MCE->encodeInstruction(Inst, Code, Fixups, *STI);
auto OutputSequence = ArrayRef<uint8_t>((uint8_t *)Code.data(), Code.size());
if (InputSequence != OutputSequence) {
if (opts::Verbosity > 1) {
Expand Down
5 changes: 3 additions & 2 deletions bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ void BinaryFunction::print(raw_ostream &OS, std::string Annotation) {
OS << "\n Image : 0x" << Twine::utohexstr(getImageAddress());
if (ExecutionCount != COUNT_NO_PROFILE) {
OS << "\n Exec Count : " << ExecutionCount;
OS << "\n Branch Count: " << RawBranchCount;
OS << "\n Profile Acc : " << format("%.1f%%", ProfileMatchRatio * 100.0f);
}

Expand Down Expand Up @@ -1535,8 +1536,7 @@ bool BinaryFunction::scanExternalRefs() {
// Emit the instruction using temp emitter and generate relocations.
SmallString<256> Code;
SmallVector<MCFixup, 4> Fixups;
raw_svector_ostream VecOS(Code);
Emitter.MCE->encodeInstruction(Instruction, VecOS, Fixups, *BC.STI);
Emitter.MCE->encodeInstruction(Instruction, Code, Fixups, *BC.STI);

// Create relocation for every fixup.
for (const MCFixup &Fixup : Fixups) {
Expand Down Expand Up @@ -2038,6 +2038,7 @@ bool BinaryFunction::buildCFG(MCPlusBuilder::AllocatorIdTy AllocatorId) {
MCInst *PrevInstr = PrevBB->getLastNonPseudoInstr();
assert(PrevInstr && "no previous instruction for a fall through");
if (MIB->isUnconditionalBranch(Instr) &&
!MIB->isIndirectBranch(*PrevInstr) &&
!MIB->isUnconditionalBranch(*PrevInstr) &&
!MIB->getConditionalTailCall(*PrevInstr) &&
!MIB->isReturn(*PrevInstr)) {
Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Core/DebugData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ void DebugStrOffsetsWriter::initialize(
"Dwarf String Offsets Byte Size is not supported.");
uint32_t Index = 0;
for (uint64_t Offset = 0; Offset < Contr->Size; Offset += DwarfOffsetByteSize)
IndexToAddressMap[Index++] = *reinterpret_cast<const uint32_t *>(
IndexToAddressMap[Index++] = support::endian::read32le(
StrOffsetsSection.Data.data() + Contr->Base + Offset);
}

Expand Down
6 changes: 6 additions & 0 deletions bolt/lib/Profile/YAMLProfileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ bool YAMLProfileReader::parseFunctionProfile(

BF.setExecutionCount(YamlBF.ExecCount);

uint64_t FuncRawBranchCount = 0;
for (const yaml::bolt::BinaryBasicBlockProfile &YamlBB : YamlBF.Blocks)
for (const yaml::bolt::SuccessorInfo &YamlSI : YamlBB.Successors)
FuncRawBranchCount += YamlSI.Count;
BF.setRawBranchCount(FuncRawBranchCount);

if (!opts::IgnoreHash && YamlBF.Hash != BF.computeHash(/*UseDFS=*/true)) {
if (opts::Verbosity >= 1)
errs() << "BOLT-WARNING: function hash mismatch\n";
Expand Down
4 changes: 3 additions & 1 deletion bolt/lib/Rewrite/RewriteInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4097,7 +4097,6 @@ void RewriteInstance::mapCodeSections(RuntimeDyld &RTDyld) {
FF.setImageAddress(0);
FF.setImageSize(0);
FF.setFileOffset(0);
BC->deregisterSection(*ColdSection);
} else {
FF.setAddress(NextAvailableAddress);
FF.setImageAddress(ColdSection->getAllocAddress());
Expand All @@ -4112,6 +4111,9 @@ void RewriteInstance::mapCodeSections(RuntimeDyld &RTDyld) {
FF.getImageAddress(), FF.getAddress(), FF.getImageSize()));
RTDyld.reassignSectionAddress(ColdSection->getSectionID(), FF.getAddress());

if (TooLarge)
BC->deregisterSection(*ColdSection);

NextAvailableAddress += FF.getImageSize();
}

Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
return true;
}

DispImm = Inst.getOperand(I).getImm() << 2;
DispImm = Inst.getOperand(I).getImm() * 4;
return true;
}
return false;
Expand Down
7 changes: 4 additions & 3 deletions bolt/test/X86/branch-data.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
# Also checks that llvm-bolt disassembler and CFG builder is working properly.

RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata --print-cfg
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata --print-cfg | FileCheck %s

CHECK: Binary Function "usqrt"
CHECK: State : CFG constructed
CHECK: Address : 0x401170
CHECK: Size : 0x43
CHECK: MaxSize : 0x50
CHECK: Offset : 0x1170
CHECK: MaxSize : 0x43
CHECK: Offset : 0xcb0
CHECK: Section : .text
CHECK: IsSimple : 1
CHECK: BB Count : 5
CHECK: Exec Count : 199
CHECK: Branch Count: 7689
CHECK: }
CHECK: .LBB{{.*}}
CHECK: Exec Count : 199
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/section-end-sym.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Check that BOLT doesn't consider end-of-section symbols (e.g., _etext) as
## functions.

# REQUIRES: system-linux, asserts
# REQUIRES: x86_64-linux, asserts

# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t.exe -q
Expand Down
Loading