Skip to content

llvmspirv pulldown #9479

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

Closed
wants to merge 617 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
617 commits
Select commit Hold shift + click to select a range
5130e04
[lldb] Don't write to source directory in test
d0k May 12, 2023
60d9010
AMDGPU: Fix issue in shl(or) combine
ruiling May 10, 2023
c3b4e27
[mlir] Add timings to mlir translate.
gysit May 12, 2023
ee75422
[AsmPrinter] Use EntryValue object info to emit Dwarf
felipepiovezan May 1, 2023
81be680
[lldb][nfc] Simplify DebugRanges class
felipepiovezan May 11, 2023
7d436d5
[mlir][transform] TrackingListener: Allow existing ops as replacements
matthias-springer May 12, 2023
80c643c
[SystemZ][z/OS] Save (and restore) R3 to avoid clobbering parameter w…
Everybody0523 May 12, 2023
ac9e959
[AArch64] Add shrink-wrapping test with missing memoperands.
fhahn May 12, 2023
c8e0560
[mlir][linalg] Add channel-first variants of convolution
kon72 May 12, 2023
72ebdb4
[mlir][NFC] Fix broken sidebar and improve documentation
sott0n May 12, 2023
f4865c7
Revert "[X86][AsmParser] Refactor code in AsmParser"
KanRobert May 12, 2023
c13ed1c
[X86][AsmParser] Refactor code and optimize more instructions from VE…
KanRobert May 7, 2023
d0718ff
[ShrinkWrap] Conservatively treat MIs without memory operands.
fhahn May 12, 2023
cad0850
[mlir][memref] Lower copy of memrefs with outer size-1 dims to intrin…
olegshyshkov May 12, 2023
2c52a18
Precommit test for D149873
jrbyrnes May 12, 2023
2bd6077
DestinationPassingStyle: allow additional non-tensor results
bjacob May 11, 2023
c06a61f
[X86] narrowShuffle - only narrow from legal vector types
RKSimon May 12, 2023
f271df0
[clang][ci] Improves buildkite artifacts.
mordante May 7, 2023
fd55636
[clang] Restores some -std=c++2b tests.
mordante May 7, 2023
b51e8ac
[NFC][libc++][format] Uses uniform member signatures.
mordante May 6, 2023
42bd814
AMDGPU: Force sc0 and sc1 on stores for gfx940 and gfx941
kzhuravl May 12, 2023
3f6e4e5
[IRTranslator][DebugInfo] Implement translation of entry_value vars
felipepiovezan May 1, 2023
53a4adc
[AMDGPU] Fix crash with 160-bit p7's by manually defining getPointerTy
krzysz00 May 5, 2023
2da2995
[SelectionDAG][DebugInfo] Implement translation of entry_value vars
felipepiovezan May 2, 2023
a983ef2
[DAGCombiner][AArch64][VE] Teach BuildUDIV/SDIV to use 2x mul when mu…
topperc May 12, 2023
ea7ee9d
[mlir][sparse] minor reorg of sparse tensor tablegen defs
aartbik May 12, 2023
1dedc96
[RISCV][llvm-mca] Add mca tests for riscv lmul instruments
michaelmaitland Apr 27, 2023
0bc739a
[GlobalISel] Handle ptr size != index size in IRTranslator, CodeGenPr…
krzysz00 Feb 7, 2023
ad8765a
Revert "[RISCV][llvm-mca] Add mca tests for riscv lmul instruments"
michaelmaitland May 12, 2023
26b5b06
[mlir][Linalg] NFC - Retire dead FusionOnTensors.cpp
nicolasvasilache May 12, 2023
0047b17
[mlir][Linalg] NFC - Retire dead tilePadOp
nicolasvasilache May 12, 2023
54fd5cf
[RISCV] Fix typo in comment. NFC
topperc May 12, 2023
1e317c3
[RISCV][llvm-mca] Add mca tests for riscv lmul instruments
michaelmaitland Apr 27, 2023
b58dd92
[lldb-vscode] Skip restart tests on ARM
luporl May 12, 2023
25159ee
Fix libstdc++ data formatter for reference/pointer to std::string
May 10, 2023
d1aee9c
[sanitizers] Remove assert from ThreadArgRetval::Finish
vitalybuka May 12, 2023
1398460
[RISCVGatherScatterLowering] Minor code cleanup [NFC]
preames May 12, 2023
49b87b0
[Driver] -ftime-trace: derive trace file names from -o and -dumpdir
MaskRay May 12, 2023
dd02984
[OpenMP] Naturally align internal global variables in the OpenMPIRBui…
jhuber6 May 12, 2023
e351b9b
[EarlyIfCvt] Don't if-convert if condition has only loop-invariant ops.
fhahn May 12, 2023
8685915
[libc++][ranges] Fix `iota_view`'s constructor's incorrect constraint
huixie90 May 9, 2023
1644adf
[flang][hlfir] Fixed AssociateOp codegen for 0-dim variables.
vzakhari May 12, 2023
52761cb
[mlir][irdl] Add verification of IRDL ops
math-fehr Mar 8, 2023
b700a90
[mlir][gpu][sparse] add gpu ops for sparse matrix computations
aartbik May 11, 2023
648d192
Revert "[mlir][irdl] Add verification of IRDL ops"
math-fehr May 12, 2023
182e5ac
[libc] Check the RPC server once again after the kernel exits
jhuber6 May 12, 2023
6d861d4
[-Wunsafe-buffer-usage] Move the whole analysis to the end of a trans…
ziqingluo-90 May 12, 2023
3971e80
Add additional criteria for hoisting vector.transfer_reads
harsh-nod May 12, 2023
2ee4dda
profilie inference changes for stale profile matching
May 12, 2023
64f1fda
[lldb][NFCI] Redefine dw_attr_t typedef with llvm::dwarf::Attribute
bulbazord May 10, 2023
297e06c
[RISCVGatherScatterLowering] Remove restriction that shift must have …
preames May 12, 2023
c909b49
[lldb][NFCI] Change return type of DWARFDebugInfoEntry::GetAttributes
bulbazord May 11, 2023
5d57a9f
[PowerPC] Adjust tests after e351b9b66da088.
fhahn May 12, 2023
715a043
[RISCVGatherScatterLowering] Support shl in non-recursive matching
preames May 12, 2023
d66417f
[test] Fix ftime-trace.cpp on Windows
MaskRay May 12, 2023
be71d4c
[lldb][NFCI] Delete commented out method OptionValueProperties::GetQu…
bulbazord May 12, 2023
39fe48b
[RISCV] Move VFMADD_VL DAG combine to a function. NFC
topperc May 12, 2023
88149fb
[AMDGPU][GFX908] IndirectCopyToAGPR: Confirm modified register is dst…
May 4, 2023
b97859b
[libc++][PSTL] Move the already implemented functions to the new disp…
philnik777 May 9, 2023
050c09f
[lldb][NFCI] Replace use of DWARFAttribute in DWARFAbbreviationDecl
bulbazord May 12, 2023
26a7f42
[mlir][tosa] Add accumulator type attribute to TOSA dialect
tatwaichong May 12, 2023
be5747e
[flang] Fixed global name creation for literal constants.
vzakhari May 10, 2023
4fe91e0
[llvm-profdata] ProfileReader cleanup - preparation for MD5 refactori…
huangjd May 12, 2023
795f930
[AArch64] Add test for #62620.
fhahn May 12, 2023
0245dc9
[test][sanitizers] Disable new test on Android
vitalybuka May 12, 2023
00e6d0e
ObjCopy: support `--dump-section` on COFF
compnerd May 11, 2023
7a0900f
[-Wunsafe-buffer-usage] Remove an unnecessary const-qualifier
ziqingluo-90 May 12, 2023
3957826
Fix mlir trait documentation typo
Jerry-Ge May 12, 2023
edd0981
[HWASan] unflake test
fmayer May 12, 2023
3665e2b
[OpenMP] Fix GCC build issues and restore "Additional APIs used by th…
May 12, 2023
6c3ea86
[llvm] Migrate {starts,ends}with_insensitive to {starts,ends}_with_in…
kazutakahirata May 12, 2023
7fd6d2b
[OpenMP] remove an erroneous assert on the location argument
May 12, 2023
19c5740
[MemProf] Set hot/cold new values with option
teresajohnson May 12, 2023
6adb9a0
[AMDGPU] Emit predefined macro `__AMDGCN_CUMODE__`
yxsamliu Mar 6, 2023
d3b5ac8
ASan: add testcase for backtrace interceptor
thurstond May 12, 2023
4e84149
Revert "[RISCVGatherScatterLowering] Minor code cleanup [NFC]"
preames May 12, 2023
d4994d0
Revert "[X86][AsmParser] Refactor code and optimize more instructions…
alanzhao1 May 12, 2023
592199c
[LV] Use interface routines instead of internal variables
preames May 12, 2023
c3c73e5
[mlir][openacc] Add canonicalization pattern for acc.host_data
clementval May 12, 2023
d3a6a05
[SuffixTree] Add suffix tree statistics
May 12, 2023
9c0a349
Revert "[SuffixTree] Add suffix tree statistics"
May 13, 2023
0152f01
Reapply "[RISCVGatherScatterLowering] Minor code cleanup [NFC]"
preames May 13, 2023
4cc2010
[RISCVGatherScatterLowering] Use InstSimplifyFolder
preames May 13, 2023
36b7029
[libc][math] Implement fast division / modulus for UInt / (uint32_t *…
lntue May 12, 2023
db39d47
[X86][AsmParser] Reapply "Refactor code and optimize more instruction…
KanRobert May 7, 2023
81e149a
Replace None with std::nullopt in comments (NFC)
kazutakahirata May 13, 2023
97b73e3
Add 'REQUIRES: asserts' to test added in D150002 (53a4adc) because it…
dyung May 13, 2023
0bbf3dd
[Clang][LoongArch] Add GPR alias handling without `$` prefix
SixWeining May 13, 2023
04fd535
ASan: add backtrace_symbols test and clarify code is correct
thurstond May 13, 2023
d9377c1
ASan: unbreak Windows build by limiting backtrace* tests to glibc
thurstond May 13, 2023
2db0812
[clang] Fix typos in documentation
kazutakahirata May 13, 2023
7f28137
[clang-tidy] Modernize RangeDescriptor (NFC)
kazutakahirata May 13, 2023
63bd772
workflows/repo-lockdown: Ignore libcxx and related sub-directories
tstellar May 13, 2023
a2648bc
[ELF] Remove remnant ranks for PPC64 ELFv1 special sections
MaskRay May 13, 2023
3a919ef
github: Remove pull request template
tstellar May 13, 2023
847789d
Revert "[RISCV][llvm-mca] Add mca tests for riscv lmul instruments"
vitalybuka May 13, 2023
afa607f
workflows/release-tasks: Remove stray backslash
tstellar May 13, 2023
245cb1f
docs: Document procedure for updating pull requests
tstellar May 13, 2023
98f59b2
[RISCV] Teach doPeepholeMaskedRVV to handle FMA instructions.
topperc May 13, 2023
b354028
[gn build] Port b97859b67416
llvmgnsyncbot May 13, 2023
96ddbd6
[llvm] Fix typos in documentation
kazutakahirata May 13, 2023
2473b1a
[ELF] Simplify getSectionRank and rewrite comments
MaskRay May 13, 2023
c01ea05
[test] Driver/ftime-trace.cpp: work around -Wmsvc-not-found
MaskRay May 13, 2023
0e8717f
[Matrix] Add shape verification.
fhahn May 13, 2023
db63fb5
[Clang][Docs] Fix man page build
boomanaiden154 May 13, 2023
88c1242
[llvm-exegesis] Remove Assembler Tests
boomanaiden154 May 13, 2023
9fe45fc
[Docs][llvm-exegesis] Specify supported platforms and architectures
boomanaiden154 May 13, 2023
0418d02
[LV] Move getVScaleForTuning out of LoopVectorizationCostModel (NFC).
fhahn May 13, 2023
6285863
[NFC][libc++][format] Tests formatter requirements.
mordante May 6, 2023
946e7aa
[llvm-jitlink] Pass object features when creating MCSubtargetInfo
mtvec May 13, 2023
65429b9
Reland "[CMake] Bumps minimum version to 3.20.0."
mordante May 13, 2023
c40277f
[MLIR] NFC. Pass affine copy options by const ref
bondhugula May 13, 2023
7472f1d
[VPlan] Change LoopVectorizationPlanner::TTI to be const reference (NFC)
fhahn May 13, 2023
f40a790
[LV] Move selecting vectorization factor logic to LVP (NFC).
fhahn May 13, 2023
c19c248
[gn] port 88c1242ed7e1 (begone, LLVMExegesisARMTests)
nico May 13, 2023
76b2915
[Clang][CMake] Use perf-training for Clang-BOLT
aaupov May 13, 2023
94f7c96
[cmake] Disable GCC lifetime DSE
thesamesam May 13, 2023
36cfea5
[X86] Add tests for inverting `(x * (Pow2_Ceil(C1) - (1 << C0))) & C1…
goldsteinn May 10, 2023
6c3bf36
[X86] Invert transforming `(x * (Pow2_Ceil(C1) - (1 << C0))) & C1` ->…
goldsteinn May 13, 2023
ab1b42a
[InstCombine] Add simplifications for div/rem with `i1` operands; PR6…
goldsteinn May 13, 2023
da9f306
[SelectionDAG] Limit max recursion in `isKnownNeverZero` and `isKnown…
goldsteinn Apr 25, 2023
e36caae
[SelectionDAG] Use `computeKnownBits` if `Op` is not recognized by `i…
goldsteinn May 13, 2023
1a83865
[Docs] Minor Fixups in Advanced Builds Documentation
boomanaiden154 May 13, 2023
bd1170d
ASan: fix potential use-after-free in backtrace interceptor
thurstond May 12, 2023
c04bcad
[libc++][NFC] Use _LIBCPP_STD_VER instead of __cpp_lib_atomic_is_alwa…
philnik777 May 12, 2023
939f927
MCSymbol: Split FragmentAndHasName to Fragment and HasName
MaskRay May 14, 2023
bb97499
Revert "[cmake] Disable GCC lifetime DSE" (to fix authorship)
thesamesam May 14, 2023
ce990b5
[cmake] Disable GCC lifetime DSE
xry111 May 14, 2023
4a9e55a
[M68k] Update divide-by-constant.ll after D150333.
topperc May 14, 2023
f0917e9
[libc++][PSTL] Make the PSTL submodules only have one header
ian-twilightcoder May 13, 2023
9ad9380
[LegalizeVectorOps][AArch64][RISCV][X86] Use OpVT for ISD::SETCC in L…
topperc May 14, 2023
9400c64
Revert "[cmake] Disable GCC lifetime DSE"
thesamesam May 14, 2023
c674125
[IntervalTree] Initialize find_iterator::Point
caojoshua May 7, 2023
0021f50
Merge from 'sycl' to 'sycl-web'
May 14, 2023
9609aee
Merge from 'main' to 'sycl-web' (478 commits)
May 14, 2023
a6b9634
[test][sanitizer] Disable create_thread_loop on Android
vitalybuka May 14, 2023
057e14d
[Coverity] Fix unchecked return value, NFC
phoebewang May 14, 2023
be4ced6
[MLIR] NFC. Make affine analysis utils method const correct
bondhugula May 14, 2023
b537963
[MLIR] NFC. Add missing const on affine analysis utils methods
bondhugula May 14, 2023
6e19eea
[X86] Improve handling on zero constant for fminimum/fmaximum lowering
May 10, 2023
b2809b4
[Coverity] Fix unchecked return value, NFC
phoebewang May 14, 2023
cf59d67
[X86] Fix the bug of pr62625
LuoYuanke May 14, 2023
77df976
[LV] Add test case for #51677.
rickyz May 14, 2023
f46b0e6
[clang] Convert a few tests to opaque pointers
s-barannikov May 14, 2023
b793280
[libc++] Moves unwrap_reference to type_traits.
mordante Apr 20, 2023
a6f53fe
[MC][X86] Fix != result for two register operands
MaskRay May 14, 2023
7f2db4d
[MC] Remove redundant classof definitions for MCTargetDesc's derived …
MaskRay May 14, 2023
da3c06a
Revert "[LV] Add test case for #51677."
dyung May 14, 2023
709f59e
[gn build] Port b7932803dede
llvmgnsyncbot May 14, 2023
ebbcbb2
[Matrix] Remove redundant transpose with dot product lowering.
fhahn May 14, 2023
626849c
[clang-tidy][test] Add trailing -- to suppress compile_commands.json …
MaskRay May 14, 2023
1ba9ec0
[AArch64] Update FP16 vector cmp costs
davemgreen May 14, 2023
5ebff1a
[NFC][Clang] Fix Coverity issues of copy without assign
smanna12 May 15, 2023
245549c
[NFC][CLANG] Fix Static Code Analysis Concerns
smanna12 May 15, 2023
3ebb336
[lldb] Complete OptionValue cleanup (NFC)
JDevlieghere May 15, 2023
62b5e55
Revert "[Serialization] Don't try to complete the redeclaration chain…
ChuanqiXu9 May 15, 2023
bf76a6e
[lldb] Cleanup OptionValue header and implenentation (NFC)
JDevlieghere May 15, 2023
47f5c54
[cmake] Disable GCC lifetime DSE
xry111 May 14, 2023
48bc715
[clang][dataflow] Eliminate `SkipPast::ReferenceThenPointer`.
martinboehme May 12, 2023
6e6bed5
[RISCV] Add test cases for forming vfwmacc when widening from f16 to …
topperc May 15, 2023
f2a05c6
[RISCV] Add RISCVISD nodes for VWFMADD_VL.
topperc May 15, 2023
25dc215
[AIX][tests] XFAIL -ftime-trace test for now
jakeegan May 15, 2023
2f99932
[Driver][test] Add -fintegrated-as after D150282
MaskRay May 15, 2023
bcbd9b0
[AMDGPU][MC] Don't accept attr > 32 for param_load
rovka May 10, 2023
52a2d07
[AMDGPU] Improve PHI-breaking heuristics in CGP
Pierre-vh May 10, 2023
794b58b
[IR] Drop const in DILocation::getMergedLocation
Dinistro May 15, 2023
ce9b89f
[NFC] Refactor GlobalVariable Ctor
gchatelet May 12, 2023
c5dede8
[libc] Add optimized memset for RISCV
gchatelet May 12, 2023
0e37ef0
[mlir][transform] Use TrackingListener-aware iterator for getPayloadOps
matthias-springer May 15, 2023
4bfe410
[TableGen][SubtargetEmitter] Add the StartAtCycles field in the Write…
fpetrogalli May 12, 2023
83768e6
[docs] Add Python coding standard to documentation
tru May 15, 2023
e16af8a
[LLD][ELF] Add missing program header parsing to OVERLAY
smithp35 May 11, 2023
622281a
[flang] add hlfir.any intrinsic
jacob-crawley May 5, 2023
d7b19b0
[flang] lower any intrinsic to hlfir.any operation
jacob-crawley May 10, 2023
b5d1ea9
[flang][hlfir] lower hlfir.any into fir runtime call
jacob-crawley May 12, 2023
579812c
[X86] LowerRotate: prefer unpack-based algorithm
May 15, 2023
683c693
[RegScavenger] Simplify forward(MachineBasicBlock::iterator). NFC.
jayfoad May 15, 2023
701f723
[VPlan] Use VPRecipeWithIRFlags for VPReplicateRecipe, retire poison map
fhahn May 15, 2023
1a42f79
[clang][dataflow] Don't analyze templated declarations.
martinboehme May 15, 2023
9417d9f
[libc] Make the bump pointer explicitly return null on buffer oveerrun
jhuber6 Apr 24, 2023
45b899b
[libc] Cache ownership of the shared buffer in the port
jhuber6 May 15, 2023
b321738
[clang][parser] Fix namespace dropping after malformed declarations
alejandro-alvarez-sonarsource May 15, 2023
d0e8911
[clangd] Fix fixAll not shown when there is only one unused-include a…
hokein May 3, 2023
38bef47
[mlir][bufferization] Fix unknown ops in BufferViewFlowAnalysis
matthias-springer May 15, 2023
e219e66
[mlir][IR][tests] Fix incorrect API usage in RewritePatterns
matthias-springer May 15, 2023
7322d35
[ValueTracking] Fix computeKnownFPClass with canonicalize
piotrAMD May 15, 2023
3060ee0
[Pipelines] Don't skip GlobalDCE in ThinLTO pre-link
nikic Apr 28, 2023
292a6c1
Fix build error caused by https://reviews.llvm.org/D149718
smanna12 May 15, 2023
03b97e0
[AMDGPU] Simplify liveins in some MIR tests
jayfoad May 15, 2023
1f479c1
[mlir][bufferization] Improve findValueInReverseUseDefChain signature
matthias-springer May 15, 2023
e1f34b7
clang-format: [JS] terminate import sorting on `export type X = Y`
frigus02 May 15, 2023
bb9d1b5
[mlir][bufferization] Add option to dump alias sets
matthias-springer May 15, 2023
ae8cb64
[mlir][scf][bufferize] Fix bug in WhileOp analysis verification
matthias-springer May 15, 2023
cbd9e54
[libc++][PSTL] Implement std::transform
philnik777 May 5, 2023
930421e
[unittests][llvm-exegesis] Remove build warnings [NFCI]
fpetrogalli May 15, 2023
627e6ef
Revert "[libc++][PSTL] Implement std::transform"
philnik777 May 15, 2023
f5dbbf4
[ConstantFold] use StoreSize for VectorType folding
khei4 May 15, 2023
f516ad6
[AArch64] Add test case where widening mull could be used.
fhahn May 15, 2023
d421f52
[X86] Use the CFA as the DWARF frame base for better variable locatio…
khuey May 15, 2023
1365ff7
[mlir] allow repeated payload in structured.fuse_into_containing
ftynse May 15, 2023
8c3a8d1
[MLIR][ROCDL] add gpu to rocdl erf support
manupak May 15, 2023
b0f0dd2
[LLVM][Uniformity] Propagate temporal divergence explicitly
ssahasra May 15, 2023
ba9eaf5
Update __cplusplus for C++23, add C++23 diag group alias.
May 15, 2023
0f1fb62
[KnownBitsTest] Align with ConstantRange test infrastructure (NFC)
nikic May 15, 2023
36d4e4c
[OpenMP] Implement task record and replay mechanism
May 15, 2023
b4d6aad
[mlir][memref] Extract isStaticShapeAndContiguousRowMajor as a util f…
olegshyshkov May 15, 2023
3a86713
[KnownBitsTest] Remove stray semicolons
jayfoad May 15, 2023
9715af4
[AIX][clang] Storage Locations for Constant Pointers
May 15, 2023
ee42e23
[mlir][sparse][gpu] first implementation of the GPU libgen approach
aartbik May 12, 2023
d6e4c4f
Revert "[X86] Use the CFA as the DWARF frame base for better variable…
jryans May 15, 2023
b763d6a
Add C++26 compile flags.
May 12, 2023
0d1be98
[clang][USR] Prevent crashes on incomplete FunctionDecls
kadircet May 3, 2023
73668cc
[AArch64][CostModel] Add costs for fixed operations when using fixed …
May 15, 2023
3181a6e
[AMDGPU] Trim zero components from buffer and image stores
May 15, 2023
6183826
[libc][NFC] Clean up the memory buffer handling for RPC
jhuber6 May 15, 2023
101cdac
[Mips] Remove MipsRegisterInfo::requiresRegisterScavenging. NFC.
jayfoad May 15, 2023
eff52b1
Fix test from b763d6a4ed4650c74c6846d743156468563b0e31
May 15, 2023
498f706
[flang][hlfir] Fixed lowering for intrinsic calls with null() box arg…
vzakhari May 15, 2023
cc84705
[flang][hlfir] Fixed copy-in for polymorphic arguments.
vzakhari May 15, 2023
80cf56e
[clang][AIX] Remove Newly Added Target Dependent Test Case
May 15, 2023
cc7dc90
[test] Fix const-str-array-decay.cl failure on PowerPC
s-barannikov May 15, 2023
6851d07
[libc++][PSTL] Implement std::transform
philnik777 May 15, 2023
08dcd4c
[gn build] Port 6851d078c54e
llvmgnsyncbot May 15, 2023
1c983af
[mlir] Fix a warning
kazutakahirata May 15, 2023
ddb2188
[SLP][NFC] Cleanup: Separate vectorization of Inserts and CmpInsts.
vporpo May 5, 2023
8ea39c0
[clang] Convert a few OpenMP tests to use opaque pointers
s-barannikov May 14, 2023
2239fd5
Fix build failure caused by https://reviews.llvm.org/D150352
amy-kwan May 15, 2023
f986987
Enable frame pointer for all non-leaf functions on riscv64 Android
hiraditya May 15, 2023
b049fc0
[libc++][PSTL] Implement std::copy{,_n}
philnik777 May 5, 2023
eed718a
[libc++][docs] Move the pre-release check-list
ldionne May 15, 2023
fee61d5
[gn build] Port b049fc0481bc
llvmgnsyncbot May 15, 2023
7c7ffa7
[flang][runtime] Fixed dimension offset computation for MayAlias.
vzakhari May 15, 2023
bf53645
[flang][runtime] Fixed memory leak in Assign().
vzakhari May 15, 2023
8097d01
Revert "[AIX][tests] XFAIL -ftime-trace test for now"
jakeegan May 15, 2023
c820f9e
[mlir][sparse][gpu] end-to-end integration test of GPU libgen approach
aartbik May 15, 2023
61d5671
Revert "[libc++][PSTL] Implement std::copy{,_n}"
philnik777 May 15, 2023
ca39168
[LLD][ELF] change CHECK to CHECK-NEXT in overlay-phdr.test NFCI
smithp35 May 15, 2023
2051755
[libc++] Implement ranges::starts_with
ZijunZhaoCCK May 8, 2023
56234d0
Merge from 'sycl' to 'sycl-web' (11 commits)
May 15, 2023
d4902a2
Fix global-variable-alignment.ll test
againull May 15, 2023
0baf2de
Update SemaSYCL/intel-fpga-loops.cpp after "[Sema] Lambdas are not pa…
againull May 10, 2023
a7e2f79
Merge from 'main' to 'sycl-web' (31 commits)
againull May 16, 2023
9f91f84
Merge remote-tracking branch 'origin/sycl-web' into sycl-web-to-resolve
againull May 16, 2023
3677182
Merge from 'sycl' to 'sycl-web' (6 commits)
May 16, 2023
ee87755
Merge from 'main' to 'sycl-web' (64 commits)
againull May 16, 2023
7083ab3
Merge remote-tracking branch 'intel_llvm/sycl-web' into llvmspirv_pul…
sys-ce-bb May 16, 2023
b0bfe54
Merge commit '205175578e0d73b4cd63d4d124a900fff10da7f8' into llvmspir…
sys-ce-bb May 16, 2023
e8087db
Add option to control builtin format for reverse translation (#1986)
sarnex May 11, 2023
d3731a5
Support the spirv.BufferSurfaceINTEL target extension type (#1995)
sarnex May 11, 2023
7e12247
Add nonsemantic-shader-100/200 to X86 tests (#2005)
MrSidims May 15, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/release-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install Dependencies
run: |
sudo apt-get update \
sudo apt-get update
sudo apt-get install -y \
doxygen \
graphviz \
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/repo-lockdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: 'Repo Lockdown'
on:
pull_request_target:
types: opened
paths-ignore:
- 'libcxx/**'
- 'libcxxabi/**'
- 'libunwind/**'
- 'runtimes/**'

permissions:
pull-requests: write
Expand Down
3 changes: 1 addition & 2 deletions bolt/include/bolt/Core/Relocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ struct Relocation {
static bool skipRelocationProcess(uint64_t &Type, uint64_t Contents);

// Adjust value depending on relocation type (make it PC relative or not)
static uint64_t adjustValue(uint64_t Type, uint64_t Value,
uint64_t PC);
static uint64_t encodeValue(uint64_t Type, uint64_t Value, uint64_t PC);

/// Extract current relocated value from binary contents. This is used for
/// RISC architectures where values are encoded in specific bits depending
Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Core/BinarySection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void BinarySection::flushPendingRelocations(raw_pwrite_stream &OS,
if (Reloc.Symbol)
Value += Resolver(Reloc.Symbol);

Value = Relocation::adjustValue(Reloc.Type, Value,
Value = Relocation::encodeValue(Reloc.Type, Value,
SectionAddress + Reloc.Offset);

OS.pwrite(reinterpret_cast<const char *>(&Value),
Expand Down
11 changes: 5 additions & 6 deletions bolt/lib/Core/HashUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "bolt/Core/HashUtilities.h"
#include "bolt/Core/BinaryContext.h"
#include "bolt/Core/BinaryFunction.h"
#include "llvm/MC/MCInstPrinter.h"

namespace llvm {
namespace bolt {
Expand Down Expand Up @@ -116,13 +117,11 @@ std::string hashBlock(BinaryContext &BC, const BinaryBasicBlock &BB,
if (IsX86 && BC.MIB->isConditionalBranch(Inst))
Opcode = BC.MIB->getShortBranchOpcode(Opcode);

if (Opcode == 0)
if (Opcode == 0) {
HashString.push_back(0);

while (Opcode) {
uint8_t LSB = Opcode & 0xff;
HashString.push_back(LSB);
Opcode = Opcode >> 8;
} else {
StringRef OpcodeName = BC.InstPrinter->getOpcodeName(Opcode);
HashString.append(OpcodeName.str());
}

for (const MCOperand &Op : MCPlus::primeOperands(Inst))
Expand Down
16 changes: 8 additions & 8 deletions bolt/lib/Core/Relocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,11 @@ static bool skipRelocationProcessAArch64(uint64_t &Type, uint64_t Contents) {
return false;
}

static uint64_t adjustValueX86(uint64_t Type, uint64_t Value, uint64_t PC) {
static uint64_t encodeValueX86(uint64_t Type, uint64_t Value, uint64_t PC) {
switch (Type) {
default:
llvm_unreachable("not supported relocation");
llvm_unreachable("unsupported relocation");
case ELF::R_X86_64_64:
case ELF::R_X86_64_32:
break;
case ELF::R_X86_64_PC32:
Expand All @@ -275,10 +276,10 @@ static uint64_t adjustValueX86(uint64_t Type, uint64_t Value, uint64_t PC) {
return Value;
}

static uint64_t adjustValueAArch64(uint64_t Type, uint64_t Value, uint64_t PC) {
static uint64_t encodeValueAArch64(uint64_t Type, uint64_t Value, uint64_t PC) {
switch (Type) {
default:
llvm_unreachable("not supported relocation");
llvm_unreachable("unsupported relocation");
case ELF::R_AARCH64_ABS32:
break;
case ELF::R_AARCH64_PREL16:
Expand Down Expand Up @@ -566,11 +567,10 @@ bool Relocation::skipRelocationProcess(uint64_t &Type, uint64_t Contents) {
return skipRelocationProcessX86(Type, Contents);
}

uint64_t Relocation::adjustValue(uint64_t Type, uint64_t Value,
uint64_t PC) {
uint64_t Relocation::encodeValue(uint64_t Type, uint64_t Value, uint64_t PC) {
if (Arch == Triple::aarch64)
return adjustValueAArch64(Type, Value, PC);
return adjustValueX86(Type, Value, PC);
return encodeValueAArch64(Type, Value, PC);
return encodeValueX86(Type, Value, PC);
}

uint64_t Relocation::extractValue(uint64_t Type, uint64_t Contents,
Expand Down
49 changes: 28 additions & 21 deletions bolt/lib/Passes/RetpolineInsertion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//===----------------------------------------------------------------------===//

#include "bolt/Passes/RetpolineInsertion.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/Support/raw_ostream.h"

#define DEBUG_TYPE "bolt-retpoline"
Expand Down Expand Up @@ -173,39 +174,45 @@ BinaryFunction *createNewRetpoline(BinaryContext &BC,
std::string createRetpolineFunctionTag(BinaryContext &BC,
const IndirectBranchInfo &BrInfo,
bool R11Available) {
if (BrInfo.isReg())
return "__retpoline_r" + to_string(BrInfo.BranchReg) + "_";
std::string Tag;
llvm::raw_string_ostream TagOS(Tag);
TagOS << "__retpoline_";

if (BrInfo.isReg()) {
BC.InstPrinter->printRegName(TagOS, BrInfo.BranchReg);
TagOS << "_";
TagOS.flush();
return Tag;
}

// Memory Branch
if (R11Available)
return "__retpoline_r11";

std::string Tag = "__retpoline_mem_";

const IndirectBranchInfo::MemOpInfo &MemRef = BrInfo.Memory;

std::string DispExprStr;
if (MemRef.DispExpr) {
llvm::raw_string_ostream Ostream(DispExprStr);
MemRef.DispExpr->print(Ostream, BC.AsmInfo.get());
Ostream.flush();
}
TagOS << "mem_";

Tag += MemRef.BaseRegNum != BC.MIB->getNoRegister()
? "r" + to_string(MemRef.BaseRegNum)
: "";
if (MemRef.BaseRegNum != BC.MIB->getNoRegister())
BC.InstPrinter->printRegName(TagOS, MemRef.BaseRegNum);

Tag += MemRef.DispExpr ? "+" + DispExprStr : "+" + to_string(MemRef.DispImm);
TagOS << "+";
if (MemRef.DispExpr)
MemRef.DispExpr->print(TagOS, BC.AsmInfo.get());
else
TagOS << MemRef.DispImm;

Tag += MemRef.IndexRegNum != BC.MIB->getNoRegister()
? "+" + to_string(MemRef.ScaleImm) + "*" +
to_string(MemRef.IndexRegNum)
: "";
if (MemRef.IndexRegNum != BC.MIB->getNoRegister()) {
TagOS << "+" << MemRef.ScaleImm << "*";
BC.InstPrinter->printRegName(TagOS, MemRef.IndexRegNum);
}

Tag += MemRef.SegRegNum != BC.MIB->getNoRegister()
? "_seg_" + to_string(MemRef.SegRegNum)
: "";
if (MemRef.SegRegNum != BC.MIB->getNoRegister()) {
TagOS << "_seg_";
BC.InstPrinter->printRegName(TagOS, MemRef.SegRegNum);
}

TagOS.flush();
return Tag;
}

Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Rewrite/DWARFRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void DWARFRewriter::updateDebugInfo() {
std::make_unique<DebugLoclistWriter>(*CU.get(), DwarfVersion, false);

if (std::optional<uint64_t> DWOId = CU->getDWOId()) {
assert(LocListWritersByCU.count(*DWOId) == 0 &&
assert(RangeListsWritersByCU.count(*DWOId) == 0 &&
"RangeLists writer for DWO unit already exists.");
auto RangeListsSectionWriter =
std::make_unique<DebugRangeListsSectionWriter>();
Expand Down
2 changes: 1 addition & 1 deletion bolt/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13.4)
cmake_minimum_required(VERSION 3.20.0)
include(CheckIncludeFiles)
include(GNUInstallDirs)

Expand Down
1 change: 1 addition & 0 deletions bolt/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ list(APPEND BOLT_TEST_DEPS
llvm-objdump
llvm-readelf
llvm-readobj
llvm-strings
llvm-strip
llvm-objcopy
merge-fdata
Expand Down
11 changes: 5 additions & 6 deletions bolt/test/X86/Inputs/dwarf5-loc-base-no-loc-accesshelper.s
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ fooVar:
.long .Lloclists_table_base0 # DW_AT_loclists_base
.byte 2 # Abbrev [2] 0x27:0xb DW_TAG_variable
.byte 3 # DW_AT_name
.long 50 # DW_AT_type
.long 39 # DW_AT_type
# DW_AT_external
.byte 0 # DW_AT_decl_file
.byte 1 # DW_AT_decl_line
.byte 0
.byte 3 # Abbrev [3] 0x32:0x4 DW_TAG_base_type
.byte 4 # DW_AT_name
.byte 5 # DW_AT_encoding
Expand Down Expand Up @@ -319,7 +318,7 @@ fooVar:
.long 88 # DW_AT_type
.byte 0 # End Of Children Mark
.byte 8 # Abbrev [8] 0x58:0x5 DW_TAG_pointer_type
.long 50 # DW_AT_type
.long 39 # DW_AT_type
.byte 9 # Abbrev [9] 0x5d:0x31 DW_TAG_subprogram
.byte 2 # DW_AT_low_pc
.long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
Expand All @@ -330,18 +329,18 @@ fooVar:
.byte 9 # DW_AT_name
.byte 0 # DW_AT_decl_file
.byte 6 # DW_AT_decl_line
.long 50 # DW_AT_type
.long 39 # DW_AT_type
# DW_AT_external
.byte 10 # Abbrev [10] 0x6d:0xa DW_TAG_formal_parameter
.byte 10 # DW_AT_name
.byte 0 # DW_AT_decl_file
.byte 6 # DW_AT_decl_line
.long 50 # DW_AT_type
.long 39 # DW_AT_type
.byte 11 # Abbrev [11] 0x77:0x9 DW_TAG_variable
.byte 7 # DW_AT_name
.byte 0 # DW_AT_decl_file
.byte 7 # DW_AT_decl_line
.long 50 # DW_AT_type
.long 39 # DW_AT_type
.byte 12 # Abbrev [12] 0x80:0xd DW_TAG_inlined_subroutine
.long 74 # DW_AT_abstract_origin
.byte 2 # DW_AT_low_pc
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/cfi-expr-rewrite.s
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# CHECK-NEXT: DW_CFA_expression: RBP DW_OP_breg6 RBP+0
# CHECK-NEXT: DW_CFA_advance_loc: 5
# CHECK-NEXT: DW_CFA_def_cfa_expression: DW_OP_breg6 RBP-8, DW_OP_deref
# CHECK-NEXT: DW_CFA_advance_loc2: 3174
# CHECK-NEXT: DW_CFA_advance_loc2: 3130
# CHECK-NEXT: DW_CFA_def_cfa: R10 +0
# CHECK-NEXT: DW_CFA_advance_loc: 5
# CHECK-NEXT: DW_CFA_def_cfa: RSP +8
Expand Down
1 change: 1 addition & 0 deletions bolt/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
ToolSubst('llvm-nm', unresolved='fatal'),
ToolSubst('llvm-objdump', unresolved='fatal'),
ToolSubst('llvm-objcopy', unresolved='fatal'),
ToolSubst('llvm-strings', unresolved='fatal'),
ToolSubst('llvm-strip', unresolved='fatal'),
ToolSubst('llvm-readelf', unresolved='fatal'),
ToolSubst('link_fdata', command=sys.executable, unresolved='fatal', extra_args=[link_fdata_cmd]),
Expand Down
6 changes: 6 additions & 0 deletions bolt/test/runtime/X86/retpoline-synthetic.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ CHECK-CALL-NOT: callq *
RUN: llvm-objdump -d -j ".text" %t | FileCheck %s -check-prefix=CHECK-JUMP
CHECK-JUMP-NOT: jmpq *

# Check generated retpoline stub names
RUN: llvm-strings %t | FileCheck %s -check-prefix=CHECK-STRINGS
CHECK-STRINGS-DAG: __retpoline_%rax_
CHECK-STRINGS-DAG: __retpoline_mem_%rip+DATAat0x[[#]]
CHECK-STRINGS-DAG: __retpoline_mem_%rax+0

RUN: %t 1000 3 | FileCheck %s
CHECK: 30000000
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/ClangTidyCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {

private:
void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
StringRef getID() const override { return CheckName; }
std::string CheckName;
ClangTidyContext *Context;

Expand All @@ -422,6 +421,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
bool areDiagsSelfContained() const {
return Context->areDiagsSelfContained();
}
StringRef getID() const override { return CheckName; }
};

/// Read a named option from the ``Context`` and parse it as a bool.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ void AssertSideEffectCheck::check(const MatchFinder::MatchResult &Result) {
StringRef AssertMacroName;
while (Loc.isValid() && Loc.isMacroID()) {
StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM, LangOpts);
Loc = SM.getImmediateMacroCallerLoc(Loc);

// Check if this macro is an assert.
if (llvm::is_contained(AssertMacros, MacroName)) {
AssertMacroName = MacroName;
break;
}
Loc = SM.getImmediateMacroCallerLoc(Loc);
}
if (AssertMacroName.empty())
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ analyzeFunction(const FunctionDecl &FuncDecl, ASTContext &ASTCtx,
using llvm::Expected;

Expected<ControlFlowContext> Context =
ControlFlowContext::build(&FuncDecl, *FuncDecl.getBody(), ASTCtx);
ControlFlowContext::build(FuncDecl, *FuncDecl.getBody(), ASTCtx);
if (!Context)
return std::nullopt;

Expand Down
4 changes: 0 additions & 4 deletions clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,6 @@ static bool containerIsConst(const Expr *ContainerExpr, bool Dereference) {
return false;
}

LoopConvertCheck::RangeDescriptor::RangeDescriptor()
: ContainerNeedsDereference(false), DerefByConstRef(false),
DerefByValue(false), NeedsReverseCall(false) {}

LoopConvertCheck::LoopConvertCheck(StringRef Name, ClangTidyContext *Context)
: ClangTidyCheck(Name, Context), TUInfo(new TUTrackingInfo),
MaxCopySize(Options.get("MaxCopySize", 16ULL)),
Expand Down
10 changes: 5 additions & 5 deletions clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class LoopConvertCheck : public ClangTidyCheck {

private:
struct RangeDescriptor {
RangeDescriptor();
bool ContainerNeedsDereference;
bool DerefByConstRef;
bool DerefByValue;
RangeDescriptor() = default;
bool ContainerNeedsDereference = false;
bool DerefByConstRef = false;
bool DerefByValue = false;
std::string ContainerString;
QualType ElemType;
bool NeedsReverseCall;
bool NeedsReverseCall = false;
};

void getAliasRange(SourceManager &SM, SourceRange &DeclRange);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
Expand Down Expand Up @@ -396,7 +397,7 @@ std::string IdentifierNamingCheck::HungarianNotation::getDeclTypeName(

IdentifierNamingCheck::IdentifierNamingCheck(StringRef Name,
ClangTidyContext *Context)
: RenamerClangTidyCheck(Name, Context), Context(Context), CheckName(Name),
: RenamerClangTidyCheck(Name, Context), Context(Context),
GetConfigPerFile(Options.get("GetConfigPerFile", true)),
IgnoreFailedSplit(Options.get("IgnoreFailedSplit", false)) {

Expand Down Expand Up @@ -1461,6 +1462,7 @@ IdentifierNamingCheck::getStyleForFile(StringRef FileName) const {
if (Iter != NamingStylesCache.end())
return Iter->getValue();

llvm::StringRef CheckName = getID();
ClangTidyOptions Options = Context->getOptionsForFile(FileName);
if (Options.Checks && GlobList(*Options.Checks).contains(CheckName)) {
auto It = NamingStylesCache.try_emplace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "../utils/RenamerClangTidyCheck.h"
#include <optional>
#include <string>
namespace clang::tidy {
namespace readability {

Expand Down Expand Up @@ -202,7 +203,6 @@ class IdentifierNamingCheck final : public RenamerClangTidyCheck {
mutable llvm::StringMap<FileStyle> NamingStylesCache;
FileStyle *MainFileStyle;
ClangTidyContext *Context;
const StringRef CheckName;
const bool GetConfigPerFile;
const bool IgnoreFailedSplit;
HungarianNotation HungarianNotation;
Expand Down
Loading