Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW02-03) #5276

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 1,004 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1004 commits
Select commit Hold shift + click to select a range
0f5b718
[LTO][codegen] Add TargetLibraryInfoWrapperPass initially
topperc Jan 6, 2022
b0774e5
[mlir][ods] ODS ops get an `extraClassDefinition`
Mogball Jan 6, 2022
75ea6b4
[M68k][test][NFC] Fix no newline at end of file
tclin914 Jan 6, 2022
358d020
[MLIR][LLVM] Add simple folders for bitcast/addrspacecast/gep
wsmoses Jan 6, 2022
cb0e12a
[M68k][test][NFC] Add missing tests for MxCMP_RM
tclin914 Jan 6, 2022
ef6817f
[lldb] Break out long help for 'frame var'
kastiglione Jan 5, 2022
9e2cfb0
[ORC] Make ExecutorAddrDiff an alias for uint64_t.
lhames Jan 3, 2022
133f86e
[JITLink] Update JITLink to use ExecutorAddr rather than JITTargetAdd…
lhames Jan 5, 2022
3a1a0d4
[lldb] Add StringList::AppendString(const Twine&) (NFC)
kastiglione Jan 5, 2022
9eeb2c9
[msan] Check for AVX regs using offset
petrhosek Jan 6, 2022
15702ff
[LoopInterchange] Remove a limitation in LoopInterchange legality
CongzheUalberta Jan 6, 2022
f71e02f
[CMake] Disable LLVM_INCLUDE_GO_TESTS by default
MaskRay Jan 6, 2022
aab62aa
[OpenMP][Offloading] Fixed a crash caused by dereferencing nullptr
shiltian Jan 6, 2022
c5965a4
Revert "[JITLink] Update JITLink to use ExecutorAddr rather than..."
lhames Jan 6, 2022
2c384c3
[MLIR][DataFlowAnalysis] Use a queue to maintain the worklist
vaivaswatha Jan 5, 2022
06c1546
DebugInfo: Rebuild varargs function types correctly
dwblaikie Jan 5, 2022
3988a06
Remove unused variable (-Wunused)
dwblaikie Jan 6, 2022
8ade3d4
Revert "[LoopInterchange] Remove a limitation in LoopInterchange lega…
CongzheUalberta Jan 6, 2022
33529ba
llvm-dwarfdump --summarize-types: skip compilation units
dwblaikie Jan 6, 2022
811b60f
llvm-dwarfdump: Speed up type unit lookup using the TUIndex or a cache
dwblaikie Jan 6, 2022
31b79b8
Revert "Remove unused variable (-Wunused)"
dwblaikie Jan 6, 2022
50b5b36
[AMDGPU] Iterate LoweredEndCf in the reverse order
cdevadas Dec 24, 2021
6396a44
Revert "SIGSEGV in Sanitizer INTERCEPTOR of strstr function."
vitalybuka Jan 6, 2022
118e953
Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " wi…
lhames Jan 6, 2022
b386bb7
Merge from 'main' to 'sycl-web' (1 commits)
yubingex007-a11y Jan 6, 2022
49d3118
[clang-format] Missing space after cast in a macro
mydeveloperday Jan 6, 2022
32808cf
[IR] Track users of comdats
nikic Dec 16, 2021
1919720
[lldb] [debugserver] Simplify handling of arch specific files
mstorsjo Jan 4, 2022
e8b98a5
[CodeGen] Emit elementtype attributes for indirect inline asm constra…
nikic Jan 5, 2022
0e5f258
[mlir][linalg][bufferize][NFC] Simplify InsertSliceOp bufferization
matthias-springer Jan 6, 2022
bfc2f4b
[ELF] Update help messages to prefer canonical name for some long opt…
MaskRay Jan 6, 2022
9c0ac10
[M68k][test][NFC] Add missing tests for arith inst with size byte or …
tclin914 Jan 6, 2022
18e08fb
[mlir][linalg][bufferize] Fix tiled_loop bufferization
matthias-springer Jan 6, 2022
37c9171
[ConstantFold] Add test for invalid non-inbounds gep icmp fold
nikic Jan 6, 2022
c41aa41
[ConstFold] Add missing check for inbounds gep
nikic Jan 6, 2022
6e4bbbf
[ELF] Enforce double-dash form for --color-diagnostics/--rsp-quoting/…
MaskRay Jan 6, 2022
95ddbed
[mlir] Split out Python bindings for dialects into separate libs
ftynse Jan 5, 2022
bbce75e
Update Bug report URL to Github Issues
ChuanqiXu9 Jan 6, 2022
5609720
[mlir][LLVM] Implement mapping of phi source values of `llvm.invoke`
zero9178 Jan 5, 2022
0fa1743
[LICM] Add test for noalias call (NFC)
nikic Jan 6, 2022
df29318
[MLIR] Add division normalization by GCD in `getDivRepr` fn.
pashu123 Jan 6, 2022
ba927f6
[AArch64] Regenerate arith overflow test, and add a few more select t…
davemgreen Jan 6, 2022
d4d9de3
[CMake] Support passing arguments to build tool for external projects
nga888 Dec 14, 2021
86d113a
[SCEVExpand] Do not create redundant 'or false' for pred expansion.
fhahn Jan 6, 2022
8eb7462
[flang][OpenMP] Add some semantic checks for threadprivate and declar…
PeixinQiao Jan 6, 2022
9cbe000
[LV] Load/store/reduction type must be sized, assert it.
sdesmalen-arm Jan 6, 2022
f430c1e
[Tests] Add elementtype attribute to indirect inline asm operands (NFC)
nikic Jan 6, 2022
41a5227
[LICM] Check for noalias call instead of alloc like fn
nikic Jan 6, 2022
0f92533
[MLIR] Simplex::normalizeRow: assert gcd is non-zero before dividing
Superty Jan 6, 2022
ddd9ec6
[LICM] Update comments related to escape check (NFC)
nikic Jan 6, 2022
ef83515
[MLIR] Simplex::findPivotRow: silence spurious coverity warning
Superty Jan 6, 2022
43c5e61
[SystemZ][z/OS][libcxx]:Fix fopen64 undeclared error in 32 bit mode
fanbo-meng Jan 6, 2022
2c4a56c
[mlir][Linalg] NFC - Modernize padding pattern
nicolasvasilache Jan 6, 2022
eddd5be
[BitCode] Autoupgrade inline asm elementtype attribute
nikic Jan 6, 2022
6638303
[LoopFlatten] checkOverflow - use cast<> instead of dyn_cast<> to avo…
RKSimon Jan 4, 2022
bec726f
[Verifier] Enforce elementtype attr for inline asm indirect constraints
nikic Jan 6, 2022
bf5a688
[SLP][NFC]Add a test for the extra shuffle after alternate node, NFC.
alexey-bataev Jan 6, 2022
700997a
[SLP][NFC]Fix comment, NFC.
alexey-bataev Jan 6, 2022
fb9bfb2
[lld][macho][nfc] Make tests less britle by not expecting ordering in…
oontvoo Jan 6, 2022
cd84cf9
[mlir][linalg][bufferize][NFC] Do not cache bufferized function types
matthias-springer Jan 6, 2022
8399fa6
[MemCpyOptimizer] Use auto* for cast<> results (style). NFC.
RKSimon Jan 6, 2022
5bbcff6
[MemCpyOptimizer] hasUndefContents - only look for underlying object …
RKSimon Jan 6, 2022
f2277e6
[libc++][NFC] Reformat <__filesystem/operations.h>
philnik777 Dec 23, 2021
2975407
[mlir][linalg][bufferize][NFC] Pass BufferizationState as const refer…
matthias-springer Jan 6, 2022
d5ba066
[clang][lex] NFC: Move some HeaderSearch functions to .cpp file
jansvoboda11 Jan 6, 2022
f558acf
Reland "[clang][ObjC] Add fix it for missing methods in impl"
DavidGoldman Jan 6, 2022
15c7e3e
[mlir][linalg][bufferize][NFC] Use RewritePatterns instead of custom …
matthias-springer Jan 6, 2022
4fc18de
AMDGPU: Clear NoPHIs property in SIOptimizeVGPRLiveRanges
arsenm Jan 6, 2022
e3e8799
[AST] ASTContext::mergeTypes - pull out repeated getAs<> calls. NFC.
RKSimon Jan 6, 2022
918015c
[EarlyCSE] Support opaque pointers
nikic Dec 28, 2021
808c662
[RISCV] Change RISCVISD::FCVT*RTZ opcodes to take rounding mode as an…
topperc Jan 6, 2022
75117fb
[RISCV] Don't advertise i32->i64 zextload as free for RV64.
topperc Jan 6, 2022
2ccf0b7
Fix build failure with GCC 11 in C++20 mode
Godin Jan 6, 2022
56ca11e
[RISCV] Add an MIR pass to replace redundant sext.w instructions with…
topperc Jan 6, 2022
e3a2618
[CMake] Include ZLIB_ROOT in LLVMConfig.cmake
jakeegan Jan 6, 2022
ec4dd86
[RISCV] Use simm5_plus1_nonzero in isel patterns for vmsgeu.vi/vmsltu…
topperc Jan 6, 2022
3d7a388
[gn build] Port 56ca11e31e6a
llvmgnsyncbot Jan 6, 2022
ea66b46
[flang] Separate temporary and user-specified object files
banach-space Jan 4, 2022
916b35e
[unroll] Strengthen verification of analysis updates under expensive …
preames Jan 6, 2022
b17f036
[Hexagon] Consider HVX reg aliases for .cur warning
androm3da Sep 28, 2018
5e7912d
[LowerMatrixIntrinsics] writeFnName - don't dereference a dyn_cast<>.…
RKSimon Jan 6, 2022
570ed38
[libc++] [test] XFAIL "span.cons/initializer_list.pass.cpp" for apple…
Quuxplusone Jan 6, 2022
c65270c
[AArch64] Add basic umulo and smulo costs
davemgreen Jan 6, 2022
afdc6a0
[Hexagon] Some compound opportunities missed in presence of branches
Jan 6, 2022
32167bf
[DFSan] Refactor dfsan_mem_shadow_transfer.
browneee Jan 5, 2022
3ef363e
[libc++] Re-enable `GCC11 / C++11`, `Clang 12` and `ASAN` CI-runs
philnik777 Jan 6, 2022
f3aed36
[libc++] Implement P1425R4 (Iterator pair constructors for std::stack…
philnik777 Jan 6, 2022
131c06e
Revert "[AArch64] Emit .cfi_negate_ra_state for PAC-auth instructions."
DanielKristofKiss Jan 6, 2022
0b5340a
[InstCombine] Factor out a common pattern match used 3 times. NFC.
rampitec Dec 23, 2021
4317a3d
[mlir][Linalg] Disable fusion of reshape with elementwise ops for pur…
Jan 6, 2022
31c7165
[lldb] Remove summary for signed char *
labath Jan 6, 2022
7cb19fe
[SLP]Initialize the lane with the given value instead of default 0.
alexey-bataev Jan 5, 2022
d130df5
[SLP]Improve reordering for the nodes beeing used in alternate vector…
alexey-bataev Jan 5, 2022
9e35e61
[libc++] [ranges] Simplify our idiom for testing niebloid-ness.
Quuxplusone Dec 29, 2021
031d3ec
[clang-format] Fix a crash (assertion) in qualifier alignment when ma…
mydeveloperday Jan 6, 2022
670de10
Disable clang-tidy warnings from system macros
carlosgalvezp Dec 29, 2021
bf9d8d9
[mlir][linalg][bufferize][NFC] Rename functions in BufferizationState
matthias-springer Jan 6, 2022
a963bc4
[lld-macho] Increase slops to prevent thunk out of range
thevinster Jan 5, 2022
6c255ac
Revert "[Hexagon] Some compound opportunities missed in presence of b…
nico Jan 6, 2022
1623261
[libc++][NFC] Remove using declarations in common_reference.compile.p…
philnik777 Jan 6, 2022
9b1d27b
[lldb] [Process/FreeBSDKernel] Support finding all processes
mgorny Dec 22, 2021
c251bfc
[LoopInterchange] Remove a limitation in LoopInterchange legality
CongzheUalberta Jan 6, 2022
37e6e02
Re-land "[Clang][ScanDeps] Use the virtual path for module maps"
Bigcheese Jan 6, 2022
0f5edb9
[mlir][linalg][bufferize] Add `createDealloc` options
matthias-springer Jan 6, 2022
635f8f3
Update mlir GDB printers
chsigg Jan 5, 2022
75d6529
[mlir][linalg][bufferize][NFC] Clean up comments and minor code refac…
matthias-springer Jan 6, 2022
4a66160
[mlir][Linalg] NFC - Modernize APIs and get rid of unnecessary tiling…
nicolasvasilache Jan 6, 2022
698896c
[mlir][linalg][bufferize][NFC] Change allocationFn return type to Fai…
matthias-springer Jan 6, 2022
a5af260
Silence warning with MSVC compiler.
aganea Jan 6, 2022
42fd68b
[mlir][linalg][bufferize] LinalgOp: Move existing region to new op
matthias-springer Jan 6, 2022
ddf1fb1
[Hexagon] Save results from partial compound
androm3da Jun 18, 2018
e37b6a6
[Hexagon] Some compound opportunities missed in presence of branches
Jan 6, 2022
3d10997
Add Rust to CodeView SourceLanguage (CV_CFL_LANG) enum
arlosi Jan 6, 2022
6a563e2
[NFC][SCEV][IndVars] Add more tests for exit count w/ `select`
LebedevRI Jan 6, 2022
9cd7e88
[mlir][Linalg] NFC - Modernize more transformation patterns.
nicolasvasilache Jan 6, 2022
7607ddd
[NFC][DFSan] Cleanup code to use align functions.
browneee Jan 6, 2022
bec50db
[libc++] Implement P1072R10 (std::basic_string::resize_and_overwrite)
philnik777 Jan 6, 2022
07c009e
[mlir][Linalg] Fix invalid FailureOr construction from LogicalResult:…
nicolasvasilache Jan 6, 2022
cffd268
Demote getMallocType to implementation routine in MemoryBuiltins [NFC]
preames Jan 7, 2022
4b0fc92
Delete unused extractCallocCall routine [NFC]
preames Jan 7, 2022
67a3331
Inline extractMallocCall to sole use and delete [NFC]
preames Jan 7, 2022
7052670
Move getMallocAllocatedType and getMallocArraySize to GlobalOpt [NFC]
preames Jan 7, 2022
5d1cfd4
Remove unused LookThroughBitCast param in isXAllocLike functions [NFC]
preames Jan 7, 2022
9ce30fe
Extract utility function for checking initial value of allocation [NFC]
preames Jan 7, 2022
92153a9
[RISCV] Support immediate vtype of VSETVLI/VSETIVLI in asm parser
Jan 7, 2022
fc8a087
[SystemZ][z/OS] Add entry point marker to PPA
Jan 7, 2022
e6075b2
[mlir] Fix a warning
kazutakahirata Jan 7, 2022
6d065ef
[M68k][NFC] Fix typo. BCNG->BCHG
tclin914 Jan 7, 2022
c6a0c15
Revert "Extract utility function for checking initial value of alloca…
preames Jan 7, 2022
808c098
[NFC][RISCV] Make the macro names more uniform
Jan 7, 2022
b3bfd59
[lldb] Compute fully qualified command names in FindCommandsForApropos
kastiglione Jan 2, 2022
bd23dff
Revert "[lldb] Compute fully qualified command names in FindCommandsF…
kastiglione Jan 7, 2022
91cf2a9
[RISCV][NFC] Use sub operator to generate register list
pcwang-thead Jan 7, 2022
6bcb4c4
[mlir][OpenMP] Added omp.atomic.write lowering to LLVM IR
shraiysh Jan 5, 2022
f3a344d
[Target] Remove redundant member initialization (NFC)
kazutakahirata Jan 7, 2022
a8ac117
[X86] add dwarf information for loop stack probe
erikdesjardins Jan 7, 2022
410480e
Ensure newlines at the end of files (NFC)
kazutakahirata Jan 7, 2022
c2cc70e
[NFC] Fix endif comments to match with include guard
ecnelises Jan 7, 2022
291660e
[SystemZ] Add missing elementtype in python test (NFC)
nikic Jan 7, 2022
c8189da
[ModuleUtils] Remove dead arg from filterDeadComdatFunctions() (NFC)
nikic Jan 7, 2022
9e4aeb1
[LoopUnroll] Remove unrelated passes from test (NFC)
nikic Jan 7, 2022
34646a2
[MLIR][Arith] Fold repeated xor and trunc
wsmoses Dec 29, 2021
2aed081
[llvm] Use true/false instead of 1/0 (NFC)
kazutakahirata Jan 7, 2022
38efa68
[LegalizeTypes][VP] Add splitting support for vp.select
victor-eds Jan 7, 2022
348bc76
[LibCalls] Infer same attrs for reallocf() as realloc()
nikic Jan 7, 2022
cafaa35
[mlir] Make it possible to directly supply constant values to LLVM GEPOp
ftynse Jan 6, 2022
43ff4a6
[mlir] Add ConstantLike trait to LLVM::ConstantOp
ftynse Jan 6, 2022
f50cfc4
[mlir] Require struct indices in LLVM::GEPOp to be constant
ftynse Jan 6, 2022
01f355f
[clang-format] Use range-for loops. NFC.
mkurdej Jan 7, 2022
91b9e67
[clang-format] Fix `BraceWrapping: AfterFunction` affecting synchroni…
mkurdej Jan 7, 2022
080f372
[SystemZ][z/OS] Fix test failure when SystemZ target is not built
jayfoad Jan 7, 2022
c033f0d
[Clang][Sema] Avoid crashing for va_arg expressions with bool argument
egorzhdan Jan 7, 2022
e4d1779
[IR] Add ConstraintInfo::hasArg() helper (NFC)
nikic Jan 7, 2022
f762eda
Merge from 'sycl' to 'sycl-web'
Jan 7, 2022
2cd2600
Unaligned Access Warning Added
mub-at-arm Dec 23, 2021
0312fe2
[CodeGen] Support opaque pointers for inline asm
nikic Jan 7, 2022
e8f1dfe
[RISCV] Supplement PACKH instruction pattern
Jan 7, 2022
a5a6960
[NFCI][IR] MinMaxIntrinsic: add some more helper methods, and use them
LebedevRI Jan 7, 2022
c9e8a51
[NFC] Pre-commit case for PowerPC perfect shuffle
ecnelises Jan 7, 2022
359b4e6
[clang-format] Use prefix increment and decrement. NFC.
mkurdej Jan 7, 2022
11c67e5
[clang][driver] Don't pass -Wunaligned-access to cc1as
lenary Jan 7, 2022
50da013
[mlir] Use const reference for loop iteration variable.
akuegel Jan 7, 2022
ae29d5a
[mlir] Provide a home for mlir::LLVM::GEPOp::kDynamicIndex
d0k Jan 7, 2022
3f3fe4a
[GlobalISel] Fix typo Extact to Extract in function name. NFC.
jayfoad Jan 7, 2022
3012265
[flang] update to reflect MLIR LLVM::GEPOp changes
ftynse Jan 7, 2022
7a66c98
[AMDGPU] Regenerate G_[SU]BFX checks using some common prefixes
jayfoad Jan 7, 2022
bd934da
[AMDGPU] Regenerate MIR checks for G_[SU]BFX
jayfoad Jan 7, 2022
2648e2d
[mlir][OpDSL] Rename `AttributeDef` to `IndexAttrDef`.
Jan 7, 2022
babad7c
[mlir][python] Use a named object
akuegel Jan 7, 2022
15757ea
[mlir][OpDSL] Add `TypeFn` class.
Jan 7, 2022
cf05668
[mlir][OpDSL] Rename `PrimFn` to `ArithFn`.
Jan 7, 2022
e3b442b
[mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`.
Jan 7, 2022
40c7243
[x86] add tests for select with -1 operand; NFC
rotateright Jan 6, 2022
5d46263
[AMDGPU] Enable divergence-driven 'ctpop' selection
alex-t Dec 26, 2021
3aec4b3
Revert "Unaligned Access Warning Added"
lenary Jan 7, 2022
21babe4
[X86] Combine reduce(add (mul x, y)) to VNNI instruction.
LuoYuanke Dec 20, 2021
765921d
sanitizer_common: prefix thread-safety macros with SANITIZER_
dvyukov Jan 5, 2022
7c19fdd
[clangd] Polish clangd/inlayHints and expose them by default.
sam-mccall Jan 5, 2022
7d9827f
[LoopVersioning] Move loop-versioning test to correct directory.
fhahn Jan 7, 2022
f395a4f
[SCEVExpand] Only create required predicate checks.
fhahn Jan 7, 2022
004ebe2
[libc++] Add missing templated version of `std::lerp`.
Quuxplusone Dec 27, 2021
c747b2c
[RISCV] Add missing e_flag EF_RISCV_TSO
Jan 7, 2022
4681ae9
[clang-format] Use range-for loops. NFC.
mkurdej Jan 7, 2022
b2ed9f3
[Clang] Implement the rest of __builtin_elementwise_* functions.
junaire Jan 7, 2022
9f5bcb0
Merge from '"main"' to '"sycl-web"' (2 commits)
ivankelarev Jan 7, 2022
b8d0753
[mlir][linalg][bufferize] Fix copy elision in `getResultBuffer`
matthias-springer Jan 7, 2022
547b9af
[mlir][linalg][bufferize][NFC] Add explicit inplaceable attrs to test…
matthias-springer Jan 7, 2022
e56a9c9
Remove redundant return statements (NFC)
kazutakahirata Jan 7, 2022
8e2b6aa
[mlir][linalg][bufferize][NFC] Analyze OpOperands instead of OpResults
matthias-springer Jan 7, 2022
d9184ab
[mlir][linalg][bufferize][NFC] Simplify buffer API of BufferizationState
matthias-springer Jan 7, 2022
bc615e4
[AArch64] Update addo and subo costs
davemgreen Jan 7, 2022
a3573f2
Fix a bug in 67a3331e (cast instead of dyn_cast)
preames Jan 7, 2022
8839773
[Hexagon] Misc shuffling fixes
Jan 10, 2020
a58a062
[Hexagon] Show slot resources for errors
androm3da Nov 14, 2019
5001c7c
[Hexagon] MC testcases for verifying packetization rules
Jan 7, 2022
9af53d2
[Hexagon] s/Fatal/ReportErrors/
androm3da Apr 26, 2018
089b910
[mlir][linalg][bufferize][NFC] Add `analyzeOp` helper function
matthias-springer Jan 7, 2022
6b0ff09
Extract utility function for checking initial value of allocation [NF…
preames Jan 7, 2022
7d1cd8e
[Support] No longer require flushing raw_string_ostream
kepler-5 Dec 9, 2021
117422c
[ComprehensiveBufferize] Fix a warning
kazutakahirata Jan 7, 2022
d7986bf
scudo: fix thread-safety macro name
dvyukov Jan 7, 2022
d51e347
[LazyCallGraph] Ignore empty RefSCCs rather than shift RefSCCs when r…
aeubanks Dec 14, 2021
fb7cf90
Use nullptr instead of 0 or NULL (NFC)
kazutakahirata Jan 7, 2022
68defc0
[x86] make select lowering using SBB hack more flexible
rotateright Jan 7, 2022
dcbc91f
[instcombine] Delete duplicate object size logic
preames Jan 7, 2022
a247360
[Hexagon] Simplify AX instruction detection
Jan 7, 2022
1f71e46
[Hexagon] Apply tiny core packet size slots limit
androm3da May 3, 2018
335a316
[Inline] Attempt to delete any discardable if unused functions
aeubanks Jan 7, 2022
137642f
[Hexagon] Reject accumulating on vd.tmp
hexhexD Jan 7, 2022
5476585
[Hexagon] Improve check for subinstruction registers
Jan 7, 2022
7244e9c
[LLDB] libcxx summary formatters for std::string_view
puremourning Jan 7, 2022
49b754b
[MLIR][NFC] Move presburger functionality from FlatAffineConstraints …
Groverkss Jan 7, 2022
4096ef3
[Hexagon] Consider direction hint forming dealloc_return duplex
Jan 7, 2022
028444c
[Hexagon] Duplex error: wrong branch hint
mikeinaustin Jan 7, 2022
b99833d
[cmake] Add read-me for the common CMake utils
Ericson2314 Jan 3, 2022
44e3365
[CMake] Factor out config prefix finding logic
Ericson2314 Jan 3, 2022
dfbe74b
[Hexagon] Fix release build break after 547658567353d
Jan 7, 2022
6f48065
[ASan][Darwin] Avoid crash during ASan initialization
Dec 23, 2021
d9ee9a1
[Hexagon] Extract condition into function, NFC
Jan 7, 2022
81f8345
Update DWARF fission extension attributes
adrian-prantl Jan 7, 2022
4f6d3a3
[LLDB] Fix setting of success in Socket::Close()
shafik Jan 7, 2022
a1da5f3
[lld] Deprecate using llvm-config to detect llvm installation
Ericson2314 Jan 2, 2022
07ecb98
[Hexagon] Use map from HexagonDepArch instead of local one, NFC
Jan 7, 2022
f96ab6c
Revert "[Inline] Attempt to delete any discardable if unused functions"
aeubanks Jan 7, 2022
3230037
[NFCI] `ScalarEvolution::getRangeRef()`: collapse `SCEVMinMaxExpr` ha…
LebedevRI Jan 7, 2022
7490305
[MLIR] Add IntegerPolyhedron::getUniverse
Groverkss Jan 7, 2022
ab76189
[lldb] Use lit_config.note to print module cache message
JDevlieghere Jan 7, 2022
f388735
[MemoryBuiltin] Cleanup stale todo comments [NFC]
preames Jan 7, 2022
3a604fd
[Clang][CFG] check children statements of asm goto
nickdesaulniers Jan 7, 2022
28d2977
[-fms-extensions] Make some exception specification warnings/errors c…
amykhuang Dec 23, 2021
ec2945d
[Hexagon] Reconize M2_mnaci in HexagonBitTracker
Jan 7, 2022
ee43259
Initialize output parameters
vitalybuka Jan 7, 2022
669eb60
Initialize HighlightingsBuilder::Resolver
vitalybuka Jan 7, 2022
91cb471
Initialize fields of TypeRecord subclasses
vitalybuka Jan 7, 2022
bd9ae59
Initialize ExtAddrMode::Scale
vitalybuka Jan 7, 2022
5c46c1c
Initialize output parameter
vitalybuka Jan 7, 2022
af931a5
[RISCV] Materializing constants with 'rori'
BaoshanPang Jan 7, 2022
cb992f9
Make separate config variable for `LLVM_LIBRARY_DIRS`
Ericson2314 Jan 1, 2022
d13da5f
[lldb] Remove lldbconfig module
JDevlieghere Jan 7, 2022
69c8e64
[formatters] Improve documentation
Dec 17, 2021
d6d3000
[CMake][WinMsvc] Fix user passed compiler/linker flags
Jan 8, 2022
49d9e21
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Jan 10, 2022
4e30f1f
Merge commit 'd6d3000a2f6d88ac73e5d4da4005ceadec788a9a' into llvmspir…
vmaksimo Jan 10, 2022
914323d
Change matrix joint type processing
MrSidims Dec 28, 2021
f70e8f1
Address some static analyzer concerns
MrSidims Sep 17, 2021
b7d7612
Represent init/fill joint_matrix instruction as OpCompositeConstruct
MrSidims Dec 29, 2021
e7ab569
Fix tests after https://reviews.llvm.org/D114080
Fznamznon Jan 1, 2022
a3c22d0
Temporarily change vc-intrinsics branch to dpcpp_staging after d116110
vmaksimo Jan 11, 2022
b2e452a
Align tests with the changed LowerWGScope pass
vmaksimo Jan 11, 2022
34fad4e
Merge remote-tracking branch 'intel_llvm/sycl' into llvmspirv_pulldown
vmaksimo Jan 13, 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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ CheckOptions:
value: CamelCase
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1

- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
value: 1
35 changes: 35 additions & 0 deletions .github/workflows/issue-subscriber.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Issue Subscriber

on:
issues:
types:
- labeled

jobs:
auto-subscribe:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- name: Update watchers
uses: actions/github-script@v5
with:
github-token: ${{ secrets.ISSUE_MENTION_SECRET }}
script: |
const teamname = "issue-subscribers-" + context.payload.label.name.replace(/ /g, "-").replace(":","-").replace("/","-");
const comment = "@llvm/" + teamname;
try {
// This will throw an exception if the team does not exist and no
// comment will be created.
team = await github.rest.teams.getByName({
org: context.repo.owner,
team_slug: teamname
});
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
} catch (e){
console.log(e);
}
4 changes: 1 addition & 3 deletions clang-tools-extra/clang-doc/Mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Error.h"

using clang::comments::FullComment;

namespace clang {
namespace doc {

Expand Down Expand Up @@ -68,7 +66,7 @@ bool MapASTVisitor::VisitCXXMethodDecl(const CXXMethodDecl *D) {

bool MapASTVisitor::VisitFunctionDecl(const FunctionDecl *D) {
// Don't visit CXXMethodDecls twice
if (dyn_cast<CXXMethodDecl>(D))
if (isa<CXXMethodDecl>(D))
return true;
return mapDecl(D);
}
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-doc/Serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ populateParentNamespaces(llvm::SmallVector<Reference, 4> &Namespaces,
// corresponds to a Record and if it doesn't have any namespace (because this
// means it's in the global namespace). Also if its outermost namespace is a
// record because that record matches the previous condition mentioned.
if ((Namespaces.empty() && dyn_cast<RecordDecl>(D)) ||
if ((Namespaces.empty() && isa<RecordDecl>(D)) ||
(!Namespaces.empty() && Namespaces.back().RefType == InfoType::IT_record))
Namespaces.emplace_back(SymbolID(), "GlobalNamespace",
InfoType::IT_namespace);
Expand Down Expand Up @@ -419,10 +419,10 @@ static void populateFunctionInfo(FunctionInfo &I, const FunctionDecl *D,
populateSymbolInfo(I, D, FC, LineNumber, Filename, IsFileInRootDir,
IsInAnonymousNamespace);
if (const auto *T = getDeclForType(D->getReturnType())) {
if (dyn_cast<EnumDecl>(T))
if (isa<EnumDecl>(T))
I.ReturnType = TypeInfo(getUSRForDecl(T), T->getNameAsString(),
InfoType::IT_enum, getInfoRelativePath(T));
else if (dyn_cast<RecordDecl>(T))
else if (isa<RecordDecl>(T))
I.ReturnType = TypeInfo(getUSRForDecl(T), T->getNameAsString(),
InfoType::IT_record, getInfoRelativePath(T));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <string>
#include <vector>

using clang::find_all_symbols::SymbolInfo;
using clang::find_all_symbols::SymbolAndSignals;

namespace clang {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "llvm/Support/raw_ostream.h"

using llvm::yaml::MappingTraits;
using llvm::yaml::IO;
using llvm::yaml::Input;
using ContextType = clang::find_all_symbols::SymbolInfo::ContextType;
using clang::find_all_symbols::SymbolInfo;
using clang::find_all_symbols::SymbolAndSignals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ void ClangTidyDiagnosticConsumer::checkFilters(SourceLocation Location,
}

if (!*Context.getOptions().SystemHeaders &&
Sources.isInSystemHeader(Location))
(Sources.isInSystemHeader(Location) || Sources.isInSystemMacro(Location)))
return;

// FIXME: We start with a conservative approach here, but the actual type of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ void DurationFactoryScaleCheck::check(const MatchFinder::MatchResult &Result) {
tooling::fixit::getText(*Remainder, *Result.Context) + ")")
.str());
}
return;
}

} // namespace abseil
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/abseil/DurationRewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ AST_MATCHER_FUNCTION_P(ast_matchers::internal::Matcher<Stmt>,
} // namespace tidy
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_DURATIONCOMPARISONCHECK_H
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_DURATIONREWRITER_H
24 changes: 16 additions & 8 deletions clang-tools-extra/clang-tidy/add_new_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,20 @@ def has_auto_fix(check_name):
dirname, _, check_name = check_name.partition("-")

checker_code = get_actual_filename(os.path.join(clang_tidy_path, dirname),
get_camel_name(check_name) + '.cpp')

get_camel_check_name(check_name) + '.cpp')
if not os.path.isfile(checker_code):
return ""
# Some older checks don't end with 'Check.cpp'
checker_code = get_actual_filename(os.path.join(clang_tidy_path, dirname),
get_camel_name(check_name) + '.cpp')
if not os.path.isfile(checker_code):
return ''

with io.open(checker_code, encoding='utf8') as f:
code = f.read()
if 'FixItHint' in code or "ReplacementText" in code or "fixit" in code:
# Some simple heuristics to figure out if a checker has an autofix or not.
return ' "Yes"'
for needle in ['FixItHint', 'ReplacementText', 'fixit', 'TransformerClangTidyCheck']:
if needle in code:
# Some simple heuristics to figure out if a checker has an autofix or not.
return ' "Yes"'
return ""

def process_doc(doc_file):
Expand Down Expand Up @@ -416,7 +420,11 @@ def write_docs(module_path, module, check_name):

def get_camel_name(check_name):
return ''.join(map(lambda elem: elem.capitalize(),
check_name.split('-'))) + 'Check'
check_name.split('-')))


def get_camel_check_name(check_name):
return get_camel_name(check_name) + 'Check'


def main():
Expand Down Expand Up @@ -458,7 +466,7 @@ def main():

module = args.module
check_name = args.check
check_name_camel = get_camel_name(check_name)
check_name_camel = get_camel_check_name(check_name)
if check_name.startswith(module):
print('Check name "%s" must not start with the module "%s". Exiting.' % (
check_name, module))
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/android/CloexecCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void CloexecCheck::insertStringFlag(

// Check if the <Mode> may be in the mode string.
const auto *ModeStr = dyn_cast<StringLiteral>(ModeArg->IgnoreParenCasts());
if (!ModeStr || (ModeStr->getString().find(Mode) != StringRef::npos))
if (!ModeStr || ModeStr->getString().contains(Mode))
return;

std::string ReplacementText = buildFixMsgForStringFlag(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static StringRef exprToStr(const Expr *E,

return Lexer::getSourceText(
CharSourceRange::getTokenRange(E->getSourceRange()),
*Result.SourceManager, Result.Context->getLangOpts(), 0);
*Result.SourceManager, Result.Context->getLangOpts(), nullptr);
}

// Returns the proper token based end location of \p E.
Expand Down Expand Up @@ -477,7 +477,7 @@ static void insertNullTerminatorExpr(StringRef Name,
FunctionExpr->getBeginLoc());
StringRef SpaceBeforeStmtStr = Lexer::getSourceText(
CharSourceRange::getCharRange(SpaceRange), *Result.SourceManager,
Result.Context->getLangOpts(), 0);
Result.Context->getLangOpts(), nullptr);

SmallString<128> NewAddNullTermExprStr;
NewAddNullTermExprStr =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static std::string collapseConsecutive(StringRef Str, char C) {
static bool hasReservedDoubleUnderscore(StringRef Name,
const LangOptions &LangOpts) {
if (LangOpts.CPlusPlus)
return Name.find("__") != StringRef::npos;
return Name.contains("__");
return Name.startswith("__");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void LimitedRandomnessCheck::registerMatchers(MatchFinder *Finder) {
}

void LimitedRandomnessCheck::check(const MatchFinder::MatchResult &Result) {
std::string Msg = "";
std::string Msg;
if (getLangOpts().CPlusPlus)
Msg = "; use C++11 random library instead";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ class NonTrivialTypesLibcMemoryCallsCheck : public ClangTidyCheck {
} // namespace tidy
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CERT_NOTTRIVIALTYPESLIBCMEMORYCALLSCHECK_H
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CERT_NONTRIVIALTYPESLIBCMEMORYCALLSCHECK_H
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/Token.h"

using namespace clang::ast_matchers;

Expand Down Expand Up @@ -57,6 +60,10 @@ static constexpr StringRef AllowedVariadics[] = {
// clang-format on
};

static constexpr StringRef VaArgWarningMessage =
"do not use va_arg to define c-style vararg functions; "
"use variadic templates instead";

namespace {
AST_MATCHER(QualType, isVAList) {
ASTContext &Context = Finder->getASTContext();
Expand Down Expand Up @@ -106,6 +113,21 @@ AST_MATCHER_P(AdjustedType, hasOriginalType,
ast_matchers::internal::Matcher<QualType>, InnerType) {
return InnerType.matches(Node.getOriginalType(), Finder, Builder);
}

class VaArgPPCallbacks : public PPCallbacks {
public:
VaArgPPCallbacks(ProTypeVarargCheck *Check) : Check(Check) {}

void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD,
SourceRange Range, const MacroArgs *Args) override {
if (MacroNameTok.getIdentifierInfo()->getName() == "va_arg") {
Check->diag(MacroNameTok.getLocation(), VaArgWarningMessage);
}
}

private:
ProTypeVarargCheck *Check;
};
} // namespace

void ProTypeVarargCheck::registerMatchers(MatchFinder *Finder) {
Expand All @@ -125,6 +147,12 @@ void ProTypeVarargCheck::registerMatchers(MatchFinder *Finder) {
this);
}

void ProTypeVarargCheck::registerPPCallbacks(const SourceManager &SM,
Preprocessor *PP,
Preprocessor *ModuleExpanderPP) {
PP->addPPCallbacks(std::make_unique<VaArgPPCallbacks>(this));
}

static bool hasSingleVariadicArgumentWithValue(const CallExpr *C, uint64_t I) {
const auto *FDecl = dyn_cast<FunctionDecl>(C->getCalleeDecl());
if (!FDecl)
Expand Down Expand Up @@ -153,9 +181,7 @@ void ProTypeVarargCheck::check(const MatchFinder::MatchResult &Result) {
}

if (const auto *Matched = Result.Nodes.getNodeAs<Expr>("va_use")) {
diag(Matched->getExprLoc(),
"do not use va_arg to define c-style vararg functions; "
"use variadic templates instead");
diag(Matched->getExprLoc(), VaArgWarningMessage);
}

if (const auto *Matched = Result.Nodes.getNodeAs<VarDecl>("va_list")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ProTypeVarargCheck : public ClangTidyCheck {
return LangOpts.CPlusPlus;
}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
Preprocessor *ModuleExpanderPP) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ void ImplementationInNamespaceCheck::check(
diag(MatchedDecl->getLocation(),
"declaration must be declared within the '%0' namespace")
<< RequiredNamespace;
return;
}

} // namespace llvm_libc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ bool LoopConvertCheck::isConvertible(ASTContext *Context,
} else if (FixerKind == LFK_PseudoArray) {
// This call is required to obtain the container.
const auto *EndCall = Nodes.getNodeAs<CXXMemberCallExpr>(EndCallName);
if (!EndCall || !dyn_cast<MemberExpr>(EndCall->getCallee()))
if (!EndCall || !isa<MemberExpr>(EndCall->getCallee()))
return false;
}
return true;
Expand Down
Loading