Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW50) #7640

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 727 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
727 commits
Select commit Hold shift + click to select a range
f99e5a9
[clang][modules][deps] Parent module maps are affecting
jansvoboda11 Dec 2, 2022
83973cf
[clang][modules][deps] Including module maps are affecting
jansvoboda11 Dec 2, 2022
8ab388e
[clang][deps] Convert file dependency paths to the native style
jansvoboda11 Dec 2, 2022
dff8227
Revert "[PowerPC] handle more than two predecessors loop header in ct…
Dec 2, 2022
b61ff0c
[PowerPC] move ctrloop pass before tail duplication
Dec 2, 2022
f0ce827
Revert "[clang][modules][deps] Including module maps are affecting"
jansvoboda11 Dec 2, 2022
67f3405
Revert "[clang][modules][deps] Parent module maps are affecting"
jansvoboda11 Dec 2, 2022
60865f1
[LoongArch] Remove dead code. NFC
wangleiat Dec 2, 2022
4763e87
Revert "[OpenMP] [OMPT] [3/8] Implemented callback registration in li…
dhruvachak Dec 2, 2022
6aebb5d
AttributeParser: Convert Optional to std::optional
MaskRay Dec 2, 2022
1a949c8
[Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2
tentzen Dec 2, 2022
7403458
Support: Convert some Optional to std::optional
MaskRay Dec 2, 2022
2d09bec
[AMDGPU] Speedup GCNDownwardRPTracker::advanceBeforeNext
vpykhtin Oct 19, 2022
991a90a
[flang] Lower evaluate::Extremum
jeanPerier Dec 2, 2022
4633599
[LoongArch] Extract out and reuse getValueType(). NFC.
gonglingqin Dec 2, 2022
5bdada9
[libc] Make libc memory functions weak by default for bazel
gchatelet Nov 30, 2022
60b6c93
[mlir] Allow access to the underlying diagnostic
River707 Dec 2, 2022
ab7a683
[TypeSwitch] Use perfect forwarding in the cast functions
River707 Dec 2, 2022
498abe2
[clang][docs] Correct floating point option explanations
kawashima-fj Nov 16, 2022
eba4efc
[clang] Remove unused bookmark in CWG360 test (NFC)
Endilll Dec 2, 2022
c44292f
[flang] Enable character type guard in select type
clementval Dec 2, 2022
4dd8fcd
Merge from 'main' to 'sycl-web' (107 commits)
Fznamznon Dec 2, 2022
7b5928e
[NFC] Update Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll.
Mel-Chen Dec 2, 2022
442a330
Merge from 'sycl' to 'sycl-web' (1 commits)
Dec 2, 2022
ac9f88e
[mlir][Index] Add pretty result names for ConstantOp and BoolConstantOp
River707 Dec 2, 2022
a076f57
[mlir][tensor] Fold rank-reducing extract_slice with inverse expand_s…
matthias-springer Dec 2, 2022
1522a3b
[mlir][tensor] Fold rank-reducing insert_slice with inverse collapse_…
matthias-springer Dec 2, 2022
c8e15af
[mlir][MemRefToLLVM] Remove the code for lowering subview
qcolombet Oct 15, 2022
db6a979
Revert "[Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2"
tentzen Dec 2, 2022
a8a376c
[RISCV] Add correct predicate over FMV instructions
Dec 2, 2022
9aa0277
Merge from 'main' to 'sycl-web' (10 commits)
Fznamznon Dec 2, 2022
8359900
[lldb][Module] Document ModuleList::ForEach and assert nullness
Michael137 Dec 1, 2022
5941858
[lldb][Module][NFC] Add ModuleList::AnyOf
Michael137 Dec 1, 2022
4df1139
[lldb][Target] Flush the scratch TypeSystem when owning lldb_private:…
Michael137 Nov 25, 2022
c4edeb8
[NFC] clang-format AArch64TargetParser
tmatheson-arm Dec 2, 2022
82a5f1c
[AArch64] use CNT for ISD::popcnt and ISD::parity if available
stuij Dec 1, 2022
af694c5
[DSE] Use precise loc for memset_chk during overwrite checks
fhahn Dec 2, 2022
6dc6f43
[Alignment][NFC] Use Align within StringTableBuilder
gchatelet Dec 2, 2022
1a8dd74
[include-cleaner] clang-include-cleaner can print/apply edits
sam-mccall Nov 30, 2022
173f62d
[Alignment][NFC] Use Align in StringTableBuilder ctor
gchatelet Dec 2, 2022
cfe77f2
[lld][Alignment][NFC] Use Align instead of log2 of alignment in Wasm …
gchatelet Dec 2, 2022
63150f4
Revert "Enhance stack protector for calling no return function"
fhahn Dec 2, 2022
1253071
[flang] Lower relational to HLFIR
jeanPerier Dec 2, 2022
248fcb1
[flang] Lower logical operations to HLFIR
jeanPerier Dec 2, 2022
26ceeee
[flang] Lower complex constructor to HLFIR
jeanPerier Dec 2, 2022
fed3d27
[flang] Make SetLength TODO explicit in HLFIR
jeanPerier Dec 2, 2022
12c8797
[flang] Lower unary operation to HLFIR
jeanPerier Dec 2, 2022
ffdb5f9
[flang] add missing unreachable in D139179
jeanPerier Dec 2, 2022
7dc3bf0
Revert "Revert "[MLIR] Introduce constraint attributes for DenseArray…
chelini Dec 2, 2022
71f3cac
Revert "[lldb][Target] Flush the scratch TypeSystem when owning lldb_…
Michael137 Dec 2, 2022
26424c9
Attributes: convert Optional to std::optional
Dec 2, 2022
0affe0c
Revert "[AMDGPU] Speedup GCNDownwardRPTracker::advanceBeforeNext"
jayfoad Dec 2, 2022
d0650d1
Revert "[mlir][MemRefToLLVM] Remove the code for lowering subview"
qcolombet Dec 2, 2022
683b9fc
[Instcombine] Code refactors for foldSelectOpOp; NFC
bcl5980 Dec 2, 2022
5fc071f
[DSE] Use precise loc for memcpy_chk during overwrite checks.
fhahn Dec 2, 2022
c1fef4e
[mlir][bufferization] Make `TensorCopyInsertionPass` a test pass
matthias-springer Dec 2, 2022
f8ea349
[flang] Perform assignment to polymorphic allocatable with runtime call
clementval Dec 2, 2022
5ce3273
[AMDGPU] Scheduler: Don't revert the schedule if the register pressur…
vpykhtin Oct 17, 2022
0037e21
[SDAG] bail out of mergeTruncStores() if there's any other use in the…
rotateright Dec 2, 2022
f24466c
[flang] Lower conversions to HLFIR
jeanPerier Dec 2, 2022
786cbb0
Re-apply "[mlir][MemRefToLLVM] Remove the code for lowering subview"
qcolombet Dec 2, 2022
35b6faf
[bazel] Add a missing dependency after 786cbb09ed
d0k Dec 2, 2022
a11d53e
[lldb] fix license header in TraceHTR.h
pietroalbini Nov 17, 2022
8431436
Link with missing libs to fix broken shared build
junaire Dec 2, 2022
495acf9
[mlir][Linalg] NFC - Purge OpBuilder uses in favor of RewriterBase in…
nicolasvasilache Nov 13, 2022
655d994
[flang] fix unused-but-set-parameter warning in ConvertExprToHLFIR.cpp
jeanPerier Dec 2, 2022
4fd0c14
Link with missing libs to fix broken shared unittest build
junaire Dec 2, 2022
3951a73
[Flang][Driver] Handle target CPU and features
UsmanNadeem Nov 30, 2022
5336b1e
[lit][AIX] Convert llvm tests to use 'target={{.*}}-aix{{.*}}'
pogo59 Nov 4, 2022
64e4d03
[lit][AIX] Convert clang tests to use 'target={{.*}}-aix{{.*}}'
pogo59 Nov 4, 2022
bcba39a
[flang] Restore ENUM_CLASS() to be compilation-time code
klausler Nov 11, 2022
6a70b84
[InstCombine] Precommit tests for D139076; NFC
bcl5980 Dec 2, 2022
36bea87
[lldb] Fix the `dwarf` log descriptions
akyrtzi Dec 1, 2022
4d6483e
Reapply "[clang][modules][deps] Parent module maps are affecting"
jansvoboda11 Dec 2, 2022
01688ee
[flang] Accommodate unknowable CHARACTER length in evaluate::ArrayCon…
klausler Oct 24, 2022
a9e24af
[lldb/unittests/CMakeLists.txt] Remove extra compiler flag `-include …
akyrtzi Dec 1, 2022
50fd660
Reapply "[clang][modules][deps] Including module maps are affecting"
jansvoboda11 Dec 2, 2022
0b24739
[PGO][indirect-call-promotion] Add extra parameter check for musttail…
xur-llvm Dec 2, 2022
9f07256
[Driver] -p: change from unused warning to error for most targets
MaskRay Dec 2, 2022
ca23b7c
[AsmPrinter] .addrsig_sym: remove isTransitiveUsedByMetadataOnly
MaskRay Dec 2, 2022
2af2e4d
[mlir][sparse] Breaking up openSparseTensor to better support non-per…
wrengr Dec 2, 2022
49f991f
Merge from 'sycl' to 'sycl-web'
Dec 2, 2022
0d58834
[flang] Check discrepancies between local & available global subprograms
klausler Dec 1, 2022
1dfb9a6
[mlir][sparse] LICM for SparseTensorReader::readCOO
wrengr Dec 2, 2022
b837112
TargetTransformInfo: convert Optional to std::optional
Dec 2, 2022
c414bbe
Make -fsanitize=scudo use scudo_standalone. Delete check-scudo.
hctim Dec 1, 2022
4e12d18
Revert "TargetTransformInfo: convert Optional to std::optional"
Dec 2, 2022
178fc19
Merge from 'main' to 'sycl-web' (110 commits)
Fznamznon Dec 2, 2022
1127e47
Don't revisit the subexpressions of PseudoObjectExpr when building a
ahatanaka Dec 2, 2022
86fe4df
TargetTransformInfo: convert Optional to std::optional
Dec 2, 2022
b775333
[RISCV] Fold low 12 bits into instruction during frame index elimination
preames Dec 2, 2022
b4b5469
[clang][Driver] Don't overwrite `DiagnosticsEngine::IgnoreAllWarnings…
vsapsai Nov 30, 2022
78da80e
[flang] Restore C702 check for ProcEntity symbols
klausler Nov 2, 2022
a4dbba7
[libc++][NFC] Fix typo in comment
ldionne Dec 2, 2022
6362dd0
GlobalSplit: Convert tests to opaque pointers
arsenm Nov 27, 2022
a58548f
SymbolRewriter: Convert test to opaque pointers
arsenm Nov 27, 2022
d0b954c
Sanitizers: Convert SanitizerBinaryMetadata tests to opaque pointers
arsenm Nov 27, 2022
2738789
SROA: Simplify addrspacecasted allocas with volatile accesses
arsenm Jun 15, 2019
f883e75
GlobalIFunc: Make allowed constant expressions stricter
arsenm Nov 24, 2022
c837a94
Revert "[mlir][tensor] Fold rank-reducing insert_slice with inverse c…
matthias-springer Dec 2, 2022
f92c750
Revert "[mlir][tensor] Fold rank-reducing extract_slice with inverse …
matthias-springer Dec 2, 2022
d3804b8
[clang][deps] Fix test failures on AIX
jansvoboda11 Dec 2, 2022
745f6fc
[flang][examples] Fix usage of EnumToString()
klausler Dec 2, 2022
7efec1a
[flang] Don't emit spurious error for polymorphic actual argument in …
klausler Nov 2, 2022
8c04c78
AArch64/GlobalISel: Regenerate test checks
arsenm Dec 2, 2022
9585500
GlobalISel: Replace bitcast test pointer usage
arsenm Dec 2, 2022
46584de
AArch64/GlobalISel: Convert tests to opaque pointers
arsenm Dec 2, 2022
b1d3afc
[mlir] Factor more common utils to IndexingUtils
hanhanW Dec 2, 2022
ba7cf9d
[ModuleInliner] Initialize variables (NFC)
kazutakahirata Dec 2, 2022
f9048cc
[Hexagon] Remove most Optionals in favor of std::optional
Dec 2, 2022
b74192b
[mlir] Remove support for non-prefixed accessors
River707 Oct 26, 2022
0417b9d
[Inline] Add a basic test for the module inliner
kazutakahirata Dec 2, 2022
1294fa6
[mlir][docs] Group the docs for defining dialect components
River707 Nov 7, 2022
56b7db9
[flang] Change error to portability warning
klausler Nov 2, 2022
a74c570
Fix some test files with executable permissions
arsenm Dec 2, 2022
2d6ec14
[ModuleInliner] Add MLPriority
kazutakahirata Dec 2, 2022
642c663
Reland "[clang][deps] During scanning don't emit warnings-as-errors t…
vsapsai Dec 2, 2022
8d23614
[flang] Disallow NULL() as an expression where it cannot appear
klausler Nov 3, 2022
c648112
[libc] Skip tests that depend on undefined targets
jhuber6 Dec 2, 2022
0c2b7fa
Leave DW_OP_addr addresses as load addresses in DWARFExpression
jasonmolenda Dec 2, 2022
b80f535
[libc][math] Implement full multiplication and quick_mul_hi for UInt …
lntue Nov 23, 2022
c7a9e5e
[mlir][sparse][bufferization] cleanup bufferization attributes after …
Dec 2, 2022
768107d
[NFC] Remove unneeded #include files.
bwendling Dec 2, 2022
28f1335
[libc][Obvious] Update error bounds for uint_test.QuickMulHiTests.
lntue Dec 2, 2022
bc83d1c
[flang] Enforce restrictions on intrinsic assignment
klausler Nov 4, 2022
abf0c6c
Use CTAD on llvm::SaveAndRestore
jansvoboda11 Dec 2, 2022
3d47afd
APFloat: Simplify makeSmallestNormalized implementation
arsenm Dec 1, 2022
81c163e
StackSafetyAnalysis: Don't use anonymous values in test
arsenm Dec 2, 2022
7cf5581
Analysis: Update some tests for opaque pointers
arsenm Dec 2, 2022
e719550
[InstCombine] fold icmp + select pattern by distributive laws
bcl5980 Dec 2, 2022
b469021
[NFC] Cleanup: Replace BB->InstList.splice() with BB->splice()
vporpo Dec 2, 2022
5ea0ba2
[flang] Enforce more restrictions on I/O data list items
klausler Nov 30, 2022
40472ef
[clang][modules] Serialize VFS overlay paths into PCMs
jansvoboda11 Dec 2, 2022
7806a92
[clang][modules][deps] Serialize inputs into PCMs using the "as reque…
jansvoboda11 Dec 2, 2022
629a29c
[flang][examples] Fix build of flang/examples/FlangOmpReport/FlangOmp…
klausler Dec 3, 2022
fccab9f
[mlir] Fix an unused variable warning
kazutakahirata Dec 3, 2022
0041382
[llvm-objcopy] Fix --section-add when section contain empty bytes
gmorer Dec 3, 2022
0ef7e9b
Merge from 'sycl' to 'sycl-web'
Dec 3, 2022
8a1f12c
[flang] Warn about more continuation lines than the standard permits
klausler Nov 4, 2022
0af012a
Merge from 'main' to 'sycl-web' (54 commits)
ErnestoSu Dec 3, 2022
f64d4a2
[llvm] Add support for hashing std::optional
kazutakahirata Dec 3, 2022
d62480c
[LoongArch] Use tablegen size for getInstSizeInBytes
XiaodongLoong Dec 3, 2022
fef3a16
[ADT, Support] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
19aff0f
[Analysis] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
e842c06
[IR] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
e9e64f7
[Bitcode] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
20cde15
[Target] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
998960e
[CodeGen] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
343de68
[Transforms] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
1101159
[DebugInfo] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
b4482f7
[tools] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
ed88e60
[utils] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
aadaafa
[llvm] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
b253628
[mlir][spirv] Clean up test-availability pass. NFC.
kuhar Dec 3, 2022
b6a01ca
[llvm/unittests] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
34b8daf
Revert "[llvm-objcopy] Fix --section-add when section contain empty b…
dyung Dec 3, 2022
c68af42
[lld] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
e324a80
[BOLT] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
dc48893
[clang-repl] Support statements on global scope in incremental mode.
vgvassilev Jun 8, 2022
bfab778
[clang][modules] Serialize the new RecordID
jansvoboda11 Dec 3, 2022
0604241
[clang-repl] Fix ambiguous initializer list.
vgvassilev Dec 3, 2022
0b74de5
.mailmap: add entry for myself
artagnon Dec 3, 2022
57c8935
mlir/linalg: improve debugging in LinalgTransformOps
artagnon Dec 2, 2022
1e33330
mlir/TosaToTensor: fix typos in test
artagnon Dec 1, 2022
d54972b
Fix build after missing conflict resolution
Fznamznon Dec 3, 2022
6272f87
[AArch64] Make ArchInfo copyable again
d0k Dec 3, 2022
5ceaeed
Improve type conversion error propagation/failure during LLVM lowering
bondhugula Dec 3, 2022
55a58b7
Merge from 'main' to 'sycl-web' (31 commits)
Fznamznon Dec 3, 2022
2c313d9
[loongarch] fix syntax error in script
nico Dec 3, 2022
d4c5c7e
Revert "[LoongArch] Use tablegen size for getInstSizeInBytes"
nico Dec 3, 2022
ae918c7
[clang-format] Add .inc extension to git-clang-format
aganea Dec 3, 2022
4178671
[clang][Windows]Ignore Options '/d1'
Qfrost911 Dec 3, 2022
2f999cc
[flang] Respect function vs subroutine distinction in generic matching
klausler Nov 6, 2022
16a72a0
[AArch64] Enable the select optimize pass for AArch64
davemgreen Dec 3, 2022
7d147a3
[flang] Warn on missing colons (C768)
klausler Nov 7, 2022
d98c172
[ELF] Fix TimeTraceScope for "Finalize .eh_frame"
MaskRay Dec 3, 2022
8c7c20f
Convert Optional<CodeModel> to std::optional<CodeModel>
Dec 3, 2022
00272ad
[ELF] Add final to some SyntheticSection derived classes
MaskRay Dec 3, 2022
d7a1351
[flang] Enforce accessibility requirement on type-bound generic opera…
klausler Dec 1, 2022
bac9742
CodeGen/CommandFlags: Convert Optional to std::optional
MaskRay Dec 3, 2022
61cb964
[lldb] Convert Optional<llvm::Reloc::Model> to std::optional
MaskRay Dec 3, 2022
fee041f
[flang] Document and warn about an extension
klausler Dec 1, 2022
8595f2e
[Sema] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
e31564a
[AST] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
bb666c6
[CodeGen] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
3233290
[flang] Disable flang/test/Semantics/resolve110.f90 on Windows
klausler Dec 3, 2022
1806006
[StaticAnalyzer] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
34e0d05
[Analysis] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
eeee3fe
[Basic] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
0c2f6e3
[Driver] llvm::None => std::nullopt. NFC
MaskRay Dec 3, 2022
5891420
[clang] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
cd8702e
[clang-tidy] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
059a23c
[clang-tools-extra] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
ab672e9
FPEnv: convert Optional to std::optional
Dec 3, 2022
a41fbb1
[clang/unittests] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
9a41739
[flang] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 3, 2022
17db0de
Reapply "[CodeGen] Add new pass for late cleanup of redundant definit…
JonPsson Dec 1, 2022
2c5d49c
[Driver] llvm::Optional => std::optional
MaskRay Dec 3, 2022
900f3f9
[COFF] llvm::Optional => std::optional
MaskRay Dec 3, 2022
7724ac6
[gn build] Port 17db0de330f9
llvmgnsyncbot Dec 3, 2022
9114ce4
[flang] Take character function length into account when testing comp…
klausler Nov 9, 2022
4fde816
[OpenMP][libomptarget] Allow overriding function that gets ELF symbol…
kevinsala Nov 23, 2022
73a6cd2
[OpenMP][libomptarget] Add minor fixes to NextGen plugins
kevinsala Nov 23, 2022
df852f4
IRBuilder: convert Optional to std::optional
Dec 3, 2022
2cb83cd
[OpenMP][libomptarget] Improve NextGen plugin interface for initializ…
kevinsala Nov 23, 2022
cea616f
[OpenMP][libomptarget] Simplify resource managers in NextGen plugins
kevinsala Nov 27, 2022
bb7e31b
[flang] Don't repeat module procedure interface from ancestor in *.mo…
klausler Dec 1, 2022
c95922c
Remove a useless temporary of a base class type.
alexfh Dec 3, 2022
1623aee
[flang] Check constraint C1577 for statement functions
klausler Nov 10, 2022
4509fb9
[MLIR] Simplify key construction/hashing in StorageUniquer
JoeLoser Dec 3, 2022
066aecf
[flang] INTENT(IN) pointer may not be forwarded to INTENT(IN OUT) or …
klausler Nov 14, 2022
9c1ad89
[flang] Emit portability warning for assigned FORMAT use
klausler Nov 14, 2022
e86e2ab
[flang] More error checking for ASSOCIATED()
klausler Nov 14, 2022
dc0d56f
[flang] Warn about local names that are the same as their enclosing p…
klausler Nov 14, 2022
5d3c972
[MLIR] Use `if constexpr` in `StorageUniquer` and `IR/AffineExpr`
JoeLoser Dec 4, 2022
1d650d4
[MLIR] Fix typo in `add_mlir_library` docs. NFC.
JoeLoser Dec 4, 2022
1a36588
[mlir] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 4, 2022
043aa1d
[polly] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 4, 2022
3a77eb6
[mlir/unittests] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 4, 2022
63b63c3
[flang/unittests] Use std::nullopt instead of None (NFC)
kazutakahirata Dec 4, 2022
5f5b942
Correct typo introduced in f607884a04b0ca06951227a01d00bc59b948d337
serge-sans-paille Dec 3, 2022
c302fb5
[Object] llvm::Optional => std::optional
MaskRay Dec 4, 2022
82a06a6
[DWARFLinker][NFC] Change interface of DWARFLinker to specify accel t…
avl-llvm Nov 20, 2022
8be0d8f
Revert "[AArch64] Make ArchInfo copyable again"
tmatheson-arm Dec 4, 2022
1d541bd
[mlir][affine] Support affine.parallel in the index set analysis
Lewuathe Dec 4, 2022
fb84dad
[LV] Update test to use use variables in CHECK lines.
fhahn Dec 4, 2022
5acee7d
[OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's As…
kevinsala Dec 4, 2022
cf28e6b
[VPlan] Add sideeffect/memory unit test for VPScalarIVStepsRecipe. (NFC)
fhahn Dec 4, 2022
3c5f073
[VPlan] Mark VPScalarIVStepsRecipe as not reading/writing memory.
fhahn Dec 4, 2022
2389488
[NFC][clang] Strengthen checks in avx512f-builtins.c
jmciver Dec 4, 2022
ee13633
[NFC][clang] Strengthen checks in avx512fp16-builtins.c
jmciver Dec 4, 2022
8073a6b
[ADT] Allow structured bindings on PointerIntPair
d0k Dec 4, 2022
7a194cf
DebugInfo: convert Optional to std::optional
Dec 3, 2022
856f793
Compress a few pairs using PointerIntPairs
d0k Dec 4, 2022
02c75e8
[ADT] Enable structured bindings for iterating StringMap
d0k Dec 4, 2022
fcf4e36
Iterate over StringMaps using structured bindings. NFCI.
d0k Dec 4, 2022
0ca43d4
DebugInfoMetadata: convert Optional to std::optional
Dec 3, 2022
6c79a58
Merge from 'main' to 'sycl-web' (23 commits)
Fznamznon Dec 5, 2022
55d6147
Merge from 'sycl' to 'sycl-web' (1 commits)
Dec 5, 2022
835e0c8
Merge from 'main' to 'sycl-web' (14 commits)
Fznamznon Dec 5, 2022
3edbddc
Merge from 'sycl' to 'sycl-web' (3 commits)
Dec 5, 2022
529d47f
Merge from 'main' to 'sycl-web' (39 commits)
Fznamznon Dec 5, 2022
6b8cd7a
Merge remote-tracking branch 'sycl-web' into llvmspirv_pulldown50
Fznamznon Dec 5, 2022
aa4cca8
Remove accidentally committed file
Fznamznon Dec 5, 2022
03ec695
Remove dead code related to Intel's JointMatrix extension (#1747)
MrSidims Nov 29, 2022
40ff4ed
Add a safety assert to BuiltinCallMutator. (#1748)
jcranmer-intel Nov 30, 2022
f224dff
Add SPV_EXT_relaxed_printf_string_address_space extension (#1749)
MrSidims Dec 2, 2022
c5a4aa2
Add -opaque-pointers flag in pulldown to make test pass
Fznamznon Dec 5, 2022
19a2c24
Revert "Enable post-commit by adding dummy change"
Fznamznon Dec 5, 2022
8a9c693
Yet another dummy change for post commit enabling
Fznamznon Dec 5, 2022
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.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Jon Roelofs <jonathan_roelofs@apple.com> <jonathan@codesourcery.com>
Jon Roelofs <jonathan_roelofs@apple.com> <jroelofs@jroelofs.com>
LLVM GN Syncbot <llvmgnsyncbot@gmail.com>
Martin Storsjö <martin@martin.st>
Ramkumar Ramachandra <r@artagnon.com> <artagnon@gmail.com>
Saleem Abdulrasool <compnerd@compnerd.org>
2 changes: 1 addition & 1 deletion bolt/include/bolt/Core/BinaryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class BinaryContext {
if (FileBuildID)
return StringRef(*FileBuildID);

return None;
return std::nullopt;
}
void setFileBuildID(StringRef ID) { FileBuildID = std::string(ID); }

Expand Down
4 changes: 2 additions & 2 deletions bolt/include/bolt/Core/BinaryFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ class BinaryFunction {
if (Callback(StringRef(Name)))
return StringRef(Name);

return None;
return std::nullopt;
}

/// Check if (possibly one out of many) function name matches the given
Expand Down Expand Up @@ -1318,7 +1318,7 @@ class BinaryFunction {
/// Return the name of the section this function originated from.
Optional<StringRef> getOriginSectionName() const {
if (!OriginSection)
return None;
return std::nullopt;
return OriginSection->getName();
}

Expand Down
3 changes: 2 additions & 1 deletion bolt/include/bolt/Core/DebugData.h
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,8 @@ class DebugAbbrevWriter {
/// Most of the time, using type units with DWO is not a good idea.
/// If type units are used, the caller is responsible for verifying
/// that abbreviations are shared by CU and TUs.
DebugAbbrevWriter(DWARFContext &Context, Optional<uint64_t> DWOId = None)
DebugAbbrevWriter(DWARFContext &Context,
Optional<uint64_t> DWOId = std::nullopt)
: Context(Context), DWOId(DWOId) {}

DebugAbbrevWriter(const DebugAbbrevWriter &) = delete;
Expand Down
6 changes: 3 additions & 3 deletions bolt/include/bolt/Core/MCPlusBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class MCPlusBuilder {
unsigned Index) const {
const MCInst *AnnotationInst = getAnnotationInst(Inst);
if (!AnnotationInst)
return None;
return std::nullopt;

for (int I = AnnotationInst->getNumOperands() - 1; I >= 0; --I) {
int64_t ImmValue = AnnotationInst->getOperand(I).getImm();
Expand All @@ -145,7 +145,7 @@ class MCPlusBuilder {
}
}

return None;
return std::nullopt;
}

protected:
Expand Down Expand Up @@ -1670,7 +1670,7 @@ class MCPlusBuilder {
auto AI = AnnotationNameIndexMap.find(Name);
if (AI != AnnotationNameIndexMap.end())
return AI->second;
return None;
return std::nullopt;
}

/// Return annotation index matching the \p Name. Create a new index if the
Expand Down
4 changes: 2 additions & 2 deletions bolt/include/bolt/Passes/ReachingDefOrUse.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ReachingDefOrUse

public:
ReachingDefOrUse(const RegAnalysis &RA, BinaryFunction &BF,
Optional<MCPhysReg> TrackingReg = None,
Optional<MCPhysReg> TrackingReg = std::nullopt,
MCPlusBuilder::AllocatorIdTy AllocId = 0)
: InstrsDataflowAnalysis<ReachingDefOrUse<Def>, !Def>(BF, AllocId),
RA(RA), TrackingReg(TrackingReg) {}
Expand Down Expand Up @@ -125,7 +125,7 @@ class ReachingDefOrUse
}
// Gen
if (!this->BC.MIB->isCFI(Point)) {
if (TrackingReg == None) {
if (TrackingReg == std::nullopt) {
// Track all instructions
Next.set(this->ExprToIdx[&Point]);
} else {
Expand Down
23 changes: 11 additions & 12 deletions bolt/include/bolt/Rewrite/DWARFRewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DWARFRewriter {
DebugAbbrevWriter &AbbrevWriter,
DebugLocWriter &DebugLocWriter,
DebugRangesSectionWriter &RangesWriter,
Optional<uint64_t> RangesBase = None);
Optional<uint64_t> RangesBase = std::nullopt);

/// Patches the binary for an object's address ranges to be updated.
/// The object can be anything that has associated address ranges via either
Expand All @@ -109,12 +109,10 @@ class DWARFRewriter {
/// \p DIE is the object's DIE in the input binary.
/// \p RangesBase if present, update \p DIE to use DW_AT_GNU_ranges_base
/// attribute.
void updateDWARFObjectAddressRanges(const DWARFDie DIE,
uint64_t DebugRangesOffset,
SimpleBinaryPatcher &DebugInfoPatcher,
DebugAbbrevWriter &AbbrevWriter,
uint64_t LowPCToUse,
Optional<uint64_t> RangesBase = None);
void updateDWARFObjectAddressRanges(
const DWARFDie DIE, uint64_t DebugRangesOffset,
SimpleBinaryPatcher &DebugInfoPatcher, DebugAbbrevWriter &AbbrevWriter,
uint64_t LowPCToUse, Optional<uint64_t> RangesBase = std::nullopt);

std::unique_ptr<DebugBufferVector>
makeFinalLocListsSection(DebugInfoBinaryPatcher &DebugInfoPatcher,
Expand Down Expand Up @@ -165,15 +163,16 @@ class DWARFRewriter {
void convertToRangesPatchAbbrev(const DWARFUnit &Unit,
const DWARFAbbreviationDeclaration *Abbrev,
DebugAbbrevWriter &AbbrevWriter,
Optional<uint64_t> RangesBase = None);
Optional<uint64_t> RangesBase = std::nullopt);

/// Update \p DIE that was using DW_AT_(low|high)_pc with DW_AT_ranges offset.
/// Updates to the DIE should be synced with abbreviation updates using the
/// function above.
void convertToRangesPatchDebugInfo(DWARFDie DIE, uint64_t RangesSectionOffset,
SimpleBinaryPatcher &DebugInfoPatcher,
uint64_t LowPCToUse,
Optional<uint64_t> RangesBase = None);
void
convertToRangesPatchDebugInfo(DWARFDie DIE, uint64_t RangesSectionOffset,
SimpleBinaryPatcher &DebugInfoPatcher,
uint64_t LowPCToUse,
Optional<uint64_t> RangesBase = std::nullopt);

/// Helper function for creating and returning per-DWO patchers/writers.
template <class T, class Patcher>
Expand Down
18 changes: 9 additions & 9 deletions bolt/lib/Core/BinaryContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,8 +1494,8 @@ unsigned BinaryContext::addDebugFilenameToUnit(const uint32_t DestCUID,
FileName = *FName;
assert(FileName != "");
DWARFCompileUnit *DstUnit = DwCtx->getCompileUnitForOffset(DestCUID);
return cantFail(getDwarfFile(Dir, FileName, 0, None, None, DestCUID,
DstUnit->getVersion()));
return cantFail(getDwarfFile(Dir, FileName, 0, std::nullopt, std::nullopt,
DestCUID, DstUnit->getVersion()));
}

std::vector<BinaryFunction *> BinaryContext::getSortedFunctions() {
Expand Down Expand Up @@ -1530,7 +1530,7 @@ std::vector<BinaryFunction *> BinaryContext::getAllBinaryFunctions() {
Optional<DWARFUnit *> BinaryContext::getDWOCU(uint64_t DWOId) {
auto Iter = DWOCUs.find(DWOId);
if (Iter == DWOCUs.end())
return None;
return std::nullopt;

return Iter->second;
}
Expand Down Expand Up @@ -1657,16 +1657,16 @@ void BinaryContext::preprocessDebugInfo() {
Iter->second->getUnitDIE().find(dwarf::DW_AT_name), nullptr);
}
BinaryLineTable.setRootFile(CU->getCompilationDir(), *Name, Checksum,
None);
std::nullopt);
}

BinaryLineTable.setDwarfVersion(DwarfVersion);

// Assign a unique label to every line table, one per CU.
// Make sure empty debug line tables are registered too.
if (FileNames.empty()) {
cantFail(
getDwarfFile("", "<unknown>", 0, None, None, CUID, DwarfVersion));
cantFail(getDwarfFile("", "<unknown>", 0, std::nullopt, std::nullopt,
CUID, DwarfVersion));
continue;
}
const uint32_t Offset = DwarfVersion < 5 ? 1 : 0;
Expand All @@ -1686,8 +1686,8 @@ void BinaryContext::preprocessDebugInfo() {
Optional<MD5::MD5Result> Checksum;
if (DwarfVersion >= 5 && LineTable->Prologue.ContentTypes.HasMD5)
Checksum = LineTable->Prologue.FileNames[I].Checksum;
cantFail(
getDwarfFile(Dir, FileName, 0, Checksum, None, CUID, DwarfVersion));
cantFail(getDwarfFile(Dir, FileName, 0, Checksum, std::nullopt, CUID,
DwarfVersion));
}
}
}
Expand Down Expand Up @@ -1897,7 +1897,7 @@ BinaryContext::getBaseAddressForMapping(uint64_t MMapAddress,
}
}

return None;
return std::nullopt;
}

ErrorOr<BinarySection &> BinaryContext::getSectionForAddress(uint64_t Address) {
Expand Down
10 changes: 5 additions & 5 deletions bolt/lib/Core/DebugData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ findAttributeInfo(const DWARFDie DIE,
Optional<DWARFFormValue> Value =
AbbrevDecl->getAttributeValueFromOffset(Index, Offset, U);
if (!Value)
return None;
return std::nullopt;
// AttributeSpec
const DWARFAbbreviationDeclaration::AttributeSpec *AttrVal =
AbbrevDecl->attributes().begin() + Index;
Expand All @@ -76,14 +76,14 @@ findAttributeInfo(const DWARFDie DIE,
Optional<AttrInfo> findAttributeInfo(const DWARFDie DIE,
dwarf::Attribute Attr) {
if (!DIE.isValid())
return None;
return std::nullopt;
const DWARFAbbreviationDeclaration *AbbrevDecl =
DIE.getAbbreviationDeclarationPtr();
if (!AbbrevDecl)
return None;
return std::nullopt;
Optional<uint32_t> Index = AbbrevDecl->findAttributeIndex(Attr);
if (!Index)
return None;
return std::nullopt;
return findAttributeInfo(DIE, AbbrevDecl, *Index);
}

Expand Down Expand Up @@ -1585,7 +1585,7 @@ void DwarfLineTable::emit(BinaryContext &BC, MCStreamer &Streamer) {
if (LineTables.empty())
return;
// In a v5 non-split line table, put the strings in a separate section.
Optional<MCDwarfLineStr> LineStr(None);
Optional<MCDwarfLineStr> LineStr(std::nullopt);
ErrorOr<BinarySection &> LineStrSection =
BC.getUniqueSectionByName(".debug_line_str");
// Some versions of GCC output DWARF5 .debug_info, but DWARF4 or lower
Expand Down
10 changes: 5 additions & 5 deletions bolt/lib/Core/MCPlusBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ bool MCPlusBuilder::isTailCall(const MCInst &Inst) const {

Optional<MCLandingPad> MCPlusBuilder::getEHInfo(const MCInst &Inst) const {
if (!isCall(Inst))
return None;
return std::nullopt;
Optional<int64_t> LPSym =
getAnnotationOpValue(Inst, MCAnnotation::kEHLandingPad);
if (!LPSym)
return None;
return std::nullopt;
Optional<int64_t> Action =
getAnnotationOpValue(Inst, MCAnnotation::kEHAction);
if (!Action)
return None;
return std::nullopt;

return std::make_pair(reinterpret_cast<const MCSymbol *>(*LPSym),
static_cast<uint64_t>(*Action));
Expand Down Expand Up @@ -221,7 +221,7 @@ MCPlusBuilder::getConditionalTailCall(const MCInst &Inst) const {
Optional<int64_t> Value =
getAnnotationOpValue(Inst, MCAnnotation::kConditionalTailCall);
if (!Value)
return None;
return std::nullopt;
return static_cast<uint64_t>(*Value);
}

Expand All @@ -243,7 +243,7 @@ bool MCPlusBuilder::unsetConditionalTailCall(MCInst &Inst) {
Optional<uint32_t> MCPlusBuilder::getOffset(const MCInst &Inst) const {
Optional<int64_t> Value = getAnnotationOpValue(Inst, MCAnnotation::kOffset);
if (!Value)
return None;
return std::nullopt;
return static_cast<uint32_t>(*Value);
}

Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Passes/AsmDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void dumpFunction(const BinaryFunction &BF) {
/*ShowInst=*/false));
AsmStreamer->initSections(true, *BC.STI);
std::unique_ptr<TargetMachine> TM(BC.TheTarget->createTargetMachine(
BC.TripleName, "", "", TargetOptions(), None));
BC.TripleName, "", "", TargetOptions(), std::nullopt));
std::unique_ptr<AsmPrinter> MAP(
BC.TheTarget->createAsmPrinter(*TM, std::move(AsmStreamer)));

Expand Down
4 changes: 2 additions & 2 deletions bolt/lib/Passes/CallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace {

inline size_t hash_int64_fallback(int64_t k) {
LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64_fallback(int64_t k) {
uint64_t key = (unsigned long long)k;
// "64 bit Mix Functions", from Thomas Wang's "Integer Hash Function."
// http://www.concentric.net/~ttwang/tech/inthash.htm
Expand All @@ -37,7 +37,7 @@ inline size_t hash_int64_fallback(int64_t k) {
return static_cast<size_t>(static_cast<uint32_t>(key));
}

inline size_t hash_int64(int64_t k) {
LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64(int64_t k) {
#if defined(USE_SSECRC) && defined(__SSE4_2__)
size_t h = 0;
__asm("crc32q %1, %0\n" : "+r"(h) : "rm"(k));
Expand Down
4 changes: 2 additions & 2 deletions bolt/lib/Passes/DataflowInfoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ReachingDefOrUse</*Def=*/true> &DataflowInfoManager::getReachingDefs() {
if (RD)
return *RD;
assert(RA && "RegAnalysis required");
RD.reset(new ReachingDefOrUse<true>(*RA, BF, None, AllocatorId));
RD.reset(new ReachingDefOrUse<true>(*RA, BF, std::nullopt, AllocatorId));
RD->run();
return *RD;
}
Expand All @@ -30,7 +30,7 @@ ReachingDefOrUse</*Def=*/false> &DataflowInfoManager::getReachingUses() {
if (RU)
return *RU;
assert(RA && "RegAnalysis required");
RU.reset(new ReachingDefOrUse<false>(*RA, BF, None, AllocatorId));
RU.reset(new ReachingDefOrUse<false>(*RA, BF, std::nullopt, AllocatorId));
RU->run();
return *RU;
}
Expand Down
2 changes: 1 addition & 1 deletion bolt/lib/Profile/BoltAddressTranslation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ BoltAddressTranslation::getFallthroughsInTrace(uint64_t FuncAddress,

auto Iter = Maps.find(FuncAddress);
if (Iter == Maps.end())
return None;
return std::nullopt;

const MapTy &Map = Iter->second;
auto FromIter = Map.upper_bound(From);
Expand Down
Loading