Skip to content

Mybranch #252

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 268 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
8a43809
Remove TwoAddressInstructionPass::sink3AddrInstruction.
jyknight Jul 16, 2020
094d638
[RelocationResolver] Support R_PPC_REL32 & R_PPC64_REL{32,64}
MaskRay Jul 18, 2020
a1f2fd1
[RelocationResolver] Support R_AARCH64_PREL32
MaskRay Jul 18, 2020
96313d2
[TSan] Optimize handling of racy address
jprotze Jul 16, 2020
2a7f193
[InstCombine] Fix replace select with Phis when branch has the same l…
xortator Jul 17, 2020
7421cbd
[InstCombine][Test] Test for fix of replacing select with Phis when b…
xortator Jul 17, 2020
76c22b3
[RISCV] Add support for -mcpu option.
zakk0610 Jul 16, 2020
2d499d7
[X86] Teach assembler parser to accept lsl and lar with a 64 or 32 so…
topperc Jul 15, 2020
40e2065
[X86] Allow lsl/lar to be parsed with a GR16, GR32, or GR64 as source…
topperc Jul 16, 2020
c467be7
[ms] [llvm-ml] Remove unused function
ericastor Jul 15, 2020
e05c7e4
Require shell for lld/test/ELF/arm-exidx-range.s
zmodem Jul 20, 2020
bf2f2bf
[LLDB] [COFF] Fix handling of symbols with more than one aux symbol
mstorsjo Jul 17, 2020
cebd637
[ConstantFolding] check applicability of AllOnes constant creation first
vtjnash Jul 15, 2020
0210565
[LLVMgold.so] -plugin-opt=save-temps: save combined module to .lto.o …
MaskRay Jul 20, 2020
8f8ec99
[LLVMgold.so][test] Fix tests after D84132/55fa315b0352
MaskRay Jul 21, 2020
764e282
[LLD][COFF] Skip computation of the undefined symbols references that…
sylvain-audi Jul 9, 2020
ba5bbd4
[PowerPC] Precommit test case for PR46759. NFC.
Jul 17, 2020
e95e071
[PowerPC] Fix wrong codegen when stack pointer has to realign in prol…
Jul 22, 2020
c522fd0
[PowerPC] Fix wrong codegen when stack pointer has to realign perform…
Jul 22, 2020
3be0d86
accept 'clang++ -c a.pch -o a.o' to create PCH's object file
llunak Jul 13, 2020
2f1aff8
add -fpch-codegen/debuginfo mapping to -fmodules-codegen/debuginfo
llunak Jul 11, 2020
9c48156
[SCEV] Remove premature assert. PR46786
xortator Jul 22, 2020
e9d37a2
Drop the npm run line from llvm/test/Analysis/ScalarEvolution/pr46786.ll
zmodem Jul 23, 2020
826f730
[InstCombine] Add test for PR46680 (NFC)
nikic Jul 18, 2020
eb3c5db
[InstCombine] Fix store merge worklist management (PR46680)
nikic Jul 18, 2020
8a2bc94
[X86][AVX] getTargetShuffleMask - don't decode VBROADCAST(EXTRACT_SUB…
RKSimon Jul 21, 2020
833f8c9
[clang] Fix libdl linking for libclang in standalone mode
tru Jul 23, 2020
3c1fca8
Fix issue in typo handling which could lead clang to hang
DavidGoldman Jul 17, 2020
f749d92
[RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zb…
lewis-revill Jul 15, 2020
ffe85d6
[RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zb…
lewis-revill Jul 15, 2020
7776c99
[RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zb…
lewis-revill Jul 15, 2020
36d3eaf
[RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zb…
lewis-revill Jul 15, 2020
1daf114
[RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zb…
lewis-revill Jul 15, 2020
f3a0437
[MC] [COFF] Make sure that weak external symbols are undefined symbols
mstorsjo Jul 21, 2020
405d10e
[llvm-lib] Support adding short import library objects with llvm-lib
mstorsjo Jul 23, 2020
d3600f8
[OPENMP] Fix PR46730: Fix compiler crash on taskloop over constructib…
alexey-bataev Jul 15, 2020
152c2b1
[LegalizeTypes] Teach DAGTypeLegalizer::GenWidenVectorLoads to pad wi…
topperc Jul 24, 2020
ca49a47
[PowerPC] Fix computation of offset for load-and-splat for permuted l…
nemanjai Jul 24, 2020
eb3f43b
[PowerPC][NFC] Fix an assert that cannot trip from 7d076e19e31a
nemanjai Jul 26, 2020
97edd8f
[JumpThreading] ProcessBranchOnXOR(): bailout if any pred ends in ind…
LebedevRI Jul 27, 2020
1b1ad65
[LLD] [COFF] Fix test to properly test all aspects of c3b1d730d6. NFC.
mstorsjo Jul 25, 2020
9dea95b
[LLD] [COFF] Fix mingw comdat associativity for leader symbols with a…
mstorsjo Jul 25, 2020
22324a6
[BasicAA] Add additional negative phi tests. NFC
davemgreen Jul 16, 2020
00ed535
[BasicAA] Fix -basicaa-recphi for geps with negative offsets
davemgreen Jul 16, 2020
bf2c0fb
Drop the 'git' suffix from various version variables
zmodem Jul 27, 2020
e47a6a2
[X86] Detect if EFLAGs is live across XBEGIN pseudo instruction. Add …
topperc Jul 28, 2020
592454c
[X86][SSE] Add additional (f)add(shuffle(x,y),shuffle(x,y)) tests for…
RKSimon Jul 23, 2020
d687594
[X86][SSE] Attempt to match OP(SHUFFLE(X,Y),SHUFFLE(X,Y)) -> SHUFFLE(…
RKSimon Jul 28, 2020
70b2872
[LLD] [MinGW] Implement the --no-seh flag
mstorsjo Jul 27, 2020
7f2a078
[InstCombine] avoid crashing on vector constant expression (PR46872)
rotateright Jul 28, 2020
baf2999
[clang-tidy] Fix RedundantStringCStrCheck with r values
njames93 Jul 29, 2020
fdb1299
[OpenMP] add missed REQUIRES:ompt for 2 OMPT tests
AndreyChurbanov Jul 21, 2020
b88690b
[AMDGPU] Don't combine memory intrs to v3i16
Flakebi Jul 21, 2020
3286126
Add flang to export.sh to it gets source tarballs in releases
zmodem Jul 31, 2020
4fd4ec6
[AArch64][SVE] Add support for trunc to <vscale x N x i1>.
efriedma-quic Jul 14, 2020
328269f
[AArch64][SVE] Fix PCS for functions taking/returning scalable types.
sdesmalen-arm Jul 20, 2020
fd2d5a0
[AArch64][SVE] Correctly allocate scavenging slot in presence of SVE.
sdesmalen-arm Jul 22, 2020
48eb1aa
[AArch64][SVE] Teach copyPhysReg to copy ZPR2/3/4.
efriedma-quic Jul 23, 2020
967b84c
[AArch64][SVE] Don't support fixedStack for SVE objects.
sdesmalen-arm Jul 27, 2020
5596693
[AArch64][SVE] Don't align the last SVE callee save.
sdesmalen-arm Jul 27, 2020
13fb3d3
[AArch64][SVE] Fix epilogue for SVE when the stack is realigned.
sdesmalen-arm Jul 28, 2020
a3532c5
[SVE] Don't use LocalStackAllocation for SVE objects
david-arm Jul 14, 2020
75e5d4f
[CodeGen] Remove calls to getVectorNumElements in DAGTypeLegalizer::S…
david-arm Jul 3, 2020
07a7044
[SVE] Add checks for no warnings in CodeGen/AArch64/sve-sext-zext.ll
david-arm Jul 3, 2020
bec3064
[SVE][CodeGen] Add simple integer add tests for SVE tuple types
david-arm Jul 16, 2020
16a68ab
[SVE] Don't consider scalable vector types in SLPVectorizerPass::vect…
david-arm Jul 10, 2020
5583444
[SVE][CodeGen] At -O0 fallback to DAG ISel when translating alloca wi…
david-arm Jul 28, 2020
6b66be5
[llvm][sve] Reg + Imm addressing mode for ld1ro.
Jul 7, 2020
db30641
[NFC][AArch64] Replace some template methods/invocations...
Jul 27, 2020
f3fa634
[llvm][CodeGen] Addressing modes for SVE ldN.
Jul 6, 2020
821e924
[LLD] [Mingw] Don't export symbols from profile generate
SquallATF Jul 30, 2020
df10da2
[OpenMP] Use weak attribute in interface only for static library
jprotze Jul 30, 2020
903c872
[analyzer] Fix out-of-tree only clang build by not relaying on privat…
steakhal Jul 31, 2020
15bf939
[ELF][test] Fix ppc64-reloc-pcrel34-overflow.s
MaskRay Jul 29, 2020
3ae25b7
[clangd] findNearbyIdentifier(): fix the word search in the token str…
ArcsinX Jul 30, 2020
a45dd85
[Concepts] Fix a deserialization crash.
hokein Jul 30, 2020
2cf9a07
Align store conditional address
bcahoon Jul 30, 2020
542a08d
[LAA] Avoid adding pointers to the checks if they are not needed.
fhahn Jul 30, 2020
921838e
[CMake] Pass bugreport URL to standalone clang build
mgorny Jul 30, 2020
a9430a1
AMDGPU: Put inexpensive ops first in AMDGPUAnnotateUniformValues::vis…
Jul 30, 2020
a19ff10
Bump forgotten version nbr in llvm/docs/conf.py
zmodem Aug 5, 2020
145694f
[llvm] Add RISCVTargetParser.def to the module map
JDevlieghere Jul 17, 2020
280653d
[OpenMP] support build on msys2/mingw with clang or gcc
adrpo Aug 4, 2020
d11e173
[OpenMP] Don't use MSVC workaround with MinGW
AndreyChurbanov Aug 4, 2020
4c1f394
RuntimeDyldELF: report_fatal_error instead of asserting for unimpleme…
zmodem Jul 23, 2020
a862618
[compiler-rt] [profile] fix profile generate for mingw x86_64
SquallATF Jul 30, 2020
0835988
[llvm-rc] Allow string table values split into multiple string literals
mstorsjo Aug 4, 2020
0b617eb
[clang-tidy] Fix regression in RenamerClangTidy
njames93 Aug 4, 2020
3cab818
[PowerPC] fixupIsDeadOrKill start and end in different block fixing
Jul 22, 2020
3aec1c6
[AArch64] [Windows] Error out on unsupported symbol locations
mstorsjo Aug 4, 2020
b067f5e
[GlobalISel][InlineAsm] Fix matching input constraint to physreg
petar-avramovic Aug 6, 2020
279922f
[ELF] Change tombstone values to (.debug_ranges/.debug_loc) 1 and (ot…
MaskRay Aug 6, 2020
f0c41f1
[clangd] Release notes for 11.x
sam-mccall Aug 10, 2020
a450654
[clangd] Fix error in release notes
sam-mccall Aug 10, 2020
ff47911
PR47143: Don't crash while constant-evaluating value-initialization of
zygoloid Aug 12, 2020
e6ec96f
[docs] Add release notes for the 11.x release
mstorsjo Aug 17, 2020
3d0470a
[AArch64][SVE] Fix CFA calculation in presence of SVE objects.
sdesmalen-arm Aug 4, 2020
8a755a4
[AArch64][SVE] Add missing unwind info for SVE registers.
sdesmalen-arm Aug 4, 2020
d485dbd
[AArch64][SVE] Disable tail calls if callee does not preserve SVE regs.
sdesmalen-arm Aug 5, 2020
2d52adc
[SVE][CodeGen] Fix bug with store of unpacked FP scalable vectors
david-arm Aug 6, 2020
a318950
Fix -Wconstant-conversion warning with explicit cast
dwblaikie Aug 4, 2020
97319d3
lld release notes: increased default max page size on arm
zmodem Aug 18, 2020
da72df4
[SVE] Fix bug in SVEIntrinsicOpts::optimizePTest
david-arm Aug 13, 2020
8cf2c03
[PowerPC] Make StartMI ignore COPY like instructions.
Aug 10, 2020
cea0ff3
[flang] Temp Driver - pass the flag to change the default integer kin…
AlexisPerry Jul 27, 2020
556e65b
Order of libraries and source files in the f18 frontend
coti Jul 27, 2020
dfc8459
[flang] Make interactive behaviour more obvious
RichBarton-Arm Jul 17, 2020
4ad21aa
[flang] Add details to --help screen on default behaviour
RichBarton-Arm Jun 25, 2020
6338655
[flang] Add -h as a synonym for help
RichBarton-Arm Jul 18, 2020
844f018
[flang] Version information in flang/f18
coti Aug 10, 2020
529b222
[Driver] Change -fnostack-clash-protection to -fno-stack-clash-prote…
davidbolvansky Aug 12, 2020
522eeb6
[InstCombine] Sanitize undef vector constant to 1 in X*(2^C) with X …
LebedevRI Aug 12, 2020
d9b3d75
[WebAssembly] Don't depend on the flags set by handleTargetFeatures i…
topperc Aug 12, 2020
2d01032
[Target] Cache the command line derived feature map in TargetOptions.
topperc Aug 12, 2020
536f65f
[X86] Optimize getImpliedDisabledFeatures & getImpliedEnabledFeatures…
MaskRay Aug 5, 2020
a3e8436
On FreeBSD, add -pthread to ASan dynamic compile flags for tests
DimitryAndric Aug 1, 2020
c89e9d6
Change the default target CPU for OpenBSD/i386 to i586
brad0 Aug 8, 2020
d09901e
int64_t and intmax_t are always (signed) long long on OpenBSD.
brad0 Aug 9, 2020
c2f52e2
Create strict aligned code for OpenBSD/arm64.
brad0 Aug 16, 2020
28a1b6e
Revert "[flang] Version information in flang/f18"
RichBarton-Arm Aug 18, 2020
5fc0afe
[X86] Add test case for PR47000. NFC
topperc Aug 5, 2020
6fed1b7
[X86] Disable copy elision in LowerMemArgument for scalarized vectors…
topperc Aug 5, 2020
7e6bf0b
[release][docs] Update contributions to LLVM 11 for SVE.
Aug 12, 2020
cb7f903
Hook up OpenBSD 64-bit PowerPC support
brad0 Aug 8, 2020
f2a53ad
fix typo
brad0 Aug 8, 2020
ad51ff4
Backout a test that is dependent on an uncommited diff. Fix another.
brad0 Aug 8, 2020
f2b2668
Re-enable OpenBSD PowerPC64 tests.
brad0 Aug 10, 2020
33c13cd
Default to disabling the libunwind frameheader cache.
Sterling-Augustine Aug 18, 2020
9b0e9ed
[globalopt] Change so that emitting fragments doesn't use the type si…
amykhuang Aug 11, 2020
a2fa88a
WCharType and WIntType are always signed int on OpenBSD.
brad0 Aug 18, 2020
709830a
Hook up OpenBSD 64-bit RISC-V support
brad0 Aug 18, 2020
1a14ce2
[RISCV] Indirect branch generation in position independent code
lenary Aug 17, 2020
7bcb12a
[Sparc] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros on SPARCv9
brad0 Aug 11, 2020
b0b18ec
[Flang] Fix release blocker issue #46931 related to documentation.
Aug 6, 2020
07de36d
lld docs config: Use a list key in html_sidebars
zmodem Aug 20, 2020
c7c68c7
[release][docs] Note on lazy binding and SVE.
Aug 19, 2020
414f32a
[release][docs] Move SVE release notes to AArch64 section.
Aug 20, 2020
1708358
lld: link libatomic if needed for Timer
cuviper Aug 17, 2020
0c37a91
[LLD][COFF] Reset outputSections for successive runs
baszalmstra Aug 22, 2020
82e48a5
Disable use of _ExtInt with '__atomic' builtins
jtmott-intel Jul 17, 2020
dcdf2af
[PowerPC] Fix a typo for InstAlias of mfsprg
zhangkangcool Aug 21, 2020
d6d03d0
[ELF][test] Fix some llvm-objdump RUN lines which don't actually test…
MaskRay Aug 20, 2020
c4e2167
[ELF] Keep st_type for symbol assignment
MaskRay Aug 24, 2020
6406b6f
Instantiate Error in Target::GetEntryPointAddress() only when necessary
DimitryAndric Aug 21, 2020
0c001a1
[clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVM…
brad0 Aug 24, 2020
e4f4d48
[clang][Driver] Implement addLibCxxIncludePaths and getCompilerRT for…
brad0 Aug 24, 2020
90c2c51
Revert "Switch to using -debug-info-kind=constructor as default (from…
amykhuang Jul 28, 2020
83338be
[libunwind] Make findUnwindSectionsByPhdr static
rprichard Aug 23, 2020
c160ff1
PR37556: Don't diagnose conflicts between instantiated unqualified
zygoloid Aug 25, 2020
9f4a92a
Reuse OMPIRBuilder `struct ident_t` handling in Clang
jdoerfert May 28, 2020
1274d83
Do not use TBAA in type punning reduction GPU code PR46156
jdoerfert Aug 15, 2020
4557452
OpenMP: Fix for PR46868: Incorrect target map
zmodem Aug 25, 2020
4d16d8d
[DAGCombine] Remove dead node when it is created by getNegatedExpression
Aug 24, 2020
03c8e1c
ReleaseNotes: removal of llgo
zmodem Aug 26, 2020
21d01a6
[ELF] --gdb-index: skip SHF_GROUP .debug_info
MaskRay Aug 13, 2020
ce9f3f1
[Docs] Document --lto-whole-program-visibility
teresajohnson Mar 4, 2020
6f2ba83
[release][SVE] Move notes for SVE ACLE to the release notes of clang.
Aug 26, 2020
46f3aed
Bump -len_control value in fuzzer-custommutator.test (PR47286)
zmodem Aug 26, 2020
04d70cd
[ELF] -r: allow SHT_X86_64_UNWIND to be merged into SHT_PROGBITS
MaskRay Aug 13, 2020
761cd1c
[X86] Correct the implementation of the testFeature macro in getIntel…
topperc Aug 21, 2020
124e825
ReleaseNotes: mention the build preferring python 3
zmodem Aug 26, 2020
29e94dd
[MC][SVE] Fix data operand for instruction alias of `st1d`.
Aug 26, 2020
6325525
Default to -fuse-init-array on OpenBSD.
brad0 Aug 27, 2020
522d80a
[OpenMP] Fix import library installation with MinGW
AndreyChurbanov Aug 26, 2020
2eab0b4
[X86] Update release notes.
topperc Aug 28, 2020
f81c617
ReleaseNotes: add some clang items
MaskRay Aug 28, 2020
5d21aed
Add release note for RecoveryExpr.
hokein Aug 28, 2020
b931e22
[PowerPC] PPCBoolRetToInt: Don't translate Constant's operands
Aug 28, 2020
aa0dcfb
[release][docs] Add -mtls-size= option to the release note
kawashima-fj Aug 28, 2020
ba34139
[CodeGen] Properly propagating Calling Convention information when lo…
pratlucas Aug 27, 2020
dae9fe4
[OpenCL][Docs] 10.x release notes
Aug 28, 2020
bc14250
[Clang][SVE] NFC: Move info about ACLE types into separate function.
sdesmalen-arm Aug 19, 2020
2bde101
[AArch64][SVE] Fix calculation restore point for SVE callee saves.
sdesmalen-arm Aug 19, 2020
f5c02e4
[AArch64][SVE] Add missing debug info for ACLE types.
sdesmalen-arm Aug 27, 2020
e37a52f
[clang] Exclude invalid destructors from lookups.
gislan Aug 26, 2020
5b08e49
[analyzer] NFC: Store the pointee/referenced type for dynamic type tr…
Aug 27, 2020
22bce84
[analyzer] pr47037: CastValueChecker: Support for the new variadic is…
Aug 27, 2020
97ac9e8
[SSP] Restore setting the visibility of __guard_local to hidden for b…
brad0 Aug 27, 2020
2c6a593
ReleaseNotes: add lld/ELF notes
MaskRay Aug 29, 2020
db16ab4
[Flang] Move markdown files(.MD) from documentation/ to docs/
Aug 18, 2020
e6b4ec9
[FLANG] Pick `.md` files when building sphinx documentation.
Sameeranjoshi Aug 24, 2020
d98e4c0
Add a few more release notes for ARM and AArch64.
kbeyls Aug 31, 2020
defbc77
[DAGCombine] Don't delete the node if it has uses immediately
Aug 28, 2020
7166d26
[cmake] Don't build with -O3 -fPIC on Solaris/sparcv9
rorth Aug 28, 2020
981192d
Remove OpenBSD/sparc support
brad0 Aug 30, 2020
3d27de6
[Flang][NFC] Remove license comments from files in docs/ folder.
Aug 31, 2020
2526d8c
[InstSimplify] Protect against more poison in SimplifyWithOpReplaced …
nikic Aug 29, 2020
7569e8c
[PowerPC] Set v1i128 to expand for SETCC to avoid crash
zhangkangcool Jul 29, 2020
f5df584
[flang] Version information in flang/f18
coti Aug 25, 2020
7030fc5
ReleaseNotes: Add RISC-V updates
asb Sep 5, 2020
919f9c2
Eliminate the sizing template parameter N from CoalescingBitVector
DimitryAndric Sep 2, 2020
8399522
[WebAssembly] Fix incorrect assumption of simple value types
tlively Sep 6, 2020
56a7fe3
[GCDAProfiling] Suppress -Wprio-ctor-dtor for GCC>=9 and remove unuse…
MaskRay Sep 2, 2020
6b98995
[PowerPC] Do not legalize vector FDIV without VSX
nemanjai Sep 2, 2020
b8fe222
[PowerPC] Fix broken kill flag after MI peephole
nemanjai Sep 2, 2020
ba6a10d
[MachineCopyPropagation] In isNopCopy, check the destination register…
topperc Sep 1, 2020
0d8feb5
[PowerPC] Provide vec_cmpne on pre-Power9 architectures in altivec.h
nemanjai Sep 5, 2020
96b8fd7
Set InvalidDecl directly when deserializing a Decl
aaronpuchert Sep 5, 2020
7d4d7a7
[compiler-rt] Implement __clear_cache() on OpenBSD/arm
brad0 Sep 6, 2020
9e6b164
[Sparc] Select the UltraSPARC instruction set with the external assem…
brad0 Sep 7, 2020
e7e6335
ReleaseNotes: Add updates in LangRef related with undef/poison
aqjune Sep 8, 2020
6d762fd
[PowerPC] Allow const pointers for load builtins in altivec.h
nemanjai Sep 4, 2020
2ffe0ee
Provide anchor for compiler extensions
Jun 25, 2020
42ee33c
[clang-format] Handle shifts within conditions
mydeveloperday Sep 8, 2020
6f1dbbc
[X86] SSE4_A should only imply SSE3 not SSSE3 in the frontend.
topperc Sep 8, 2020
d1cdc6d
[PowerPC] Set setMaxAtomicSizeInBitsSupported appropriately for 32-bi…
brad0 Sep 9, 2020
8ae3293
Revert D86875 "[Flang][NFC] Remove license comments from files in doc…
SouraVX Sep 10, 2020
9ad89a8
[flang] Convert release notes to markdown
RichBarton-Arm Sep 3, 2020
d024df4
[compiler-rt] [netbsd] Reintroduce __sanitizer_protoent
krytarowski Sep 10, 2020
29d700a
[DebugInfo] Fixing CodeView assert related to lowerBound field of DIS…
alokkrsharma Sep 11, 2020
bff8d98
[clang][aarch64] Fix mangling of bfloat16 neon vectors
c-rhodes Sep 10, 2020
01be54e
[flang] Add new documentation main page
RichBarton-Arm Sep 11, 2020
b3fb40b
[AMDGPU] Fix for folding v2.16 literals.
dfukalov Sep 4, 2020
2d61b5e
Reduce code duplication in simplifySelectWithICmpCond (NFC)
nikic Aug 29, 2020
d720e58
Add test for PR47322 (NFC)
nikic Sep 10, 2020
be31896
Fix incorrect SimplifyWithOpReplaced transform (PR47322)
nikic Sep 10, 2020
88e17a8
[SelectionDAG] Remove unused FP constant in getNegatedExpression
ecnelises Sep 15, 2020
d754173
[clangd] Use string[] for allCommitCharacters
kirillbobyrev Aug 26, 2020
2ec7739
[FastISel] Bail out of selectGetElementPtr for vector GEPs.
topperc Sep 14, 2020
274bb3f
Clang release notes: mention the max_tokens_here pragma
zmodem Sep 15, 2020
1a8e450
[analyzer] Add documentation for alpha.fuchsia.Lock and alpha.core.C1…
Szelethus Aug 25, 2020
e62452b
Revert "Double check that passes correctly set their Modified status"
zmodem Sep 15, 2020
791b7e9
[release][docs] Add 11.0.0. release notes for the Clang Static Analyzer
Szelethus Aug 25, 2020
22dab21
Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpress…
ecnelises Sep 15, 2020
d3f1f58
[Docs] Add/update release notes for D71913 (LTO WPD changes)
teresajohnson Sep 1, 2020
1596c2d
Fix -allow-enabling-analyzer-alpha-checkers always being passed to ru…
Aug 20, 2020
4b23932
[OPENMP][NFC]Release notes for OpenMP in clang (11.x).
zmodem Sep 15, 2020
6e04286
Revert "RegAllocFast: Record internal state based on register units"
zmodem Sep 15, 2020
1585817
ReleaseNotes: PowerPC changes
zmodem Sep 15, 2020
8f2c296
[flang] Fix docs build
RichBarton-Arm Sep 16, 2020
4a26e3b
[clangd] Actually parse Index section of the YAML file.
gislan Sep 15, 2020
339a0e2
llvm release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
1a51c11
clang release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
19d7a9f
clang-tools-extra release notes: drop in-progress warnings; minor cle…
zmodem Sep 16, 2020
6afefb4
lld release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
34c21f8
flang release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
952e7c3
libc++ release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
f9572ab
openmp release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
c2f4de3
polly release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
80e2fc1
[X86][ELF] Prefer lowering MC_GlobalAddress operands to .Lfoo$local f…
bd1976bris Aug 13, 2020
4fe4e35
[Flang] Add GettingInvolved documentation page and sidebar.
Sep 13, 2020
b78e5de
[SelectionDAG] Check any use of negation result before removal
ecnelises Sep 17, 2020
410b0dc
[llvm] Add contains(KeyType) -> bool methods to SmallPtrSet
dwblaikie Jul 17, 2020
6250d49
PR47468: Fix findPHICopyInsertPoint, so that copies aren't incorrectl…
jyknight Sep 17, 2020
b513e19
[CodeGen] Fixing inconsistent ABI mangling of vlaues in SelectionDAGB…
pratlucas Sep 17, 2020
8aca41f
[clang][docs] Fix documentation of -O
jrtc27 Sep 17, 2020
1b80e74
llvm index.rst: Drop in-progress warning
zmodem Sep 22, 2020
0b56e54
clang-tools-extra: Drop doxygen link from index.rst
zmodem Sep 22, 2020
e9adcbf
release notes: mention zig as an external project
zmodem Sep 24, 2020
81eb1c1
AArch64/GlobalISel: Reduced patch for bug 47619
arsenm Sep 24, 2020
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,18 @@ void RedundantStringCStrCheck::registerMatchers(
callee(memberExpr().bind("member")),
callee(cxxMethodDecl(hasAnyName("c_str", "data"))))
.bind("call");

const auto HasRValueTempParent =
hasParent(materializeTemporaryExpr(unless(isBoundToLValue())));
// Detect redundant 'c_str()' calls through a string constructor.
// If CxxConstructExpr is the part of some CallExpr we need to
// check that matched ParamDecl of the ancestor CallExpr is not rvalue.
Finder->addMatcher(
traverse(ast_type_traits::TK_AsIs,
cxxConstructExpr(StringConstructorExpr,
hasArgument(0, StringCStrCallExpr),
unless(hasParent(materializeTemporaryExpr(
unless(isBoundToLValue())))))),
traverse(
ast_type_traits::TK_AsIs,
cxxConstructExpr(
StringConstructorExpr, hasArgument(0, StringCStrCallExpr),
unless(anyOf(HasRValueTempParent, hasParent(cxxBindTemporaryExpr(
HasRValueTempParent)))))),
this);

// Detect: 's == str.c_str()' -> 's == str'
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_tidy_invocation(f, clang_tidy_binary, checks, tmpdir, build_path,
extra_arg, extra_arg_before, quiet, config):
"""Gets a command line for clang-tidy."""
start = [clang_tidy_binary]
if allow_enabling_alpha_checkers is not None:
if allow_enabling_alpha_checkers:
start.append('-allow-enabling-analyzer-alpha-checkers')
if header_filter is not None:
start.append('-header-filter=' + header_filter)
Expand Down
5 changes: 3 additions & 2 deletions clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ void RenamerClangTidyCheck::addUsage(
RenamerClangTidyCheck::NamingCheckFailure &Failure =
NamingCheckFailures[Decl];

if (!Failure.RawUsageLocs.insert(FixLocation.getRawEncoding()).second)
return;

if (!Failure.ShouldFix())
return;

Expand All @@ -165,8 +168,6 @@ void RenamerClangTidyCheck::addUsage(

if (!utils::rangeCanBeFixed(Range, SourceMgr))
Failure.FixStatus = RenamerClangTidyCheck::ShouldFixStatus::InsideMacro;

Failure.RawUsageLocs.insert(FixLocation.getRawEncoding());
}

void RenamerClangTidyCheck::addUsage(const NamedDecl *Decl, SourceRange Range,
Expand Down
5 changes: 4 additions & 1 deletion clang-tools-extra/clangd/ClangdLSPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ void ClangdLSPServer::onInitialize(const InitializeParams &Params,
{"codeActionProvider", std::move(CodeActionProvider)},
{"completionProvider",
llvm::json::Object{
{"allCommitCharacters", " \t()[]{}<>:;,+-/*%^&#?.=\"'|"},
{"allCommitCharacters",
{" ", "\t", "(", ")", "[", "]", "{", "}", "<",
">", ":", ";", ",", "+", "-", "/", "*", "%",
"^", "&", "#", "?", ".", "=", "\"", "'", "|"}},
{"resolveProvider", false},
// We do extra checks, e.g. that > is part of ->.
{"triggerCharacters", {".", "<", ">", ":", "\"", "/"}},
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/ConfigYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Parser {
DictParser Dict("Config", this);
Dict.handle("If", [&](Node &N) { parse(F.If, N); });
Dict.handle("CompileFlags", [&](Node &N) { parse(F.CompileFlags, N); });
Dict.handle("Index", [&](Node &N) { parse(F.Index, N); });
Dict.parse(N);
return !(N.failed() || HadError);
}
Expand Down
10 changes: 3 additions & 7 deletions clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,11 @@ void OverlayCDB::setCompileCommand(
}

llvm::Optional<ProjectInfo> OverlayCDB::getProjectInfo(PathRef File) const {
{
std::lock_guard<std::mutex> Lock(Mutex);
auto It = Commands.find(removeDots(File));
if (It != Commands.end())
return ProjectInfo{};
}
// It wouldn't make much sense to treat files with overridden commands
// specially when we can't do the same for the (unknown) local headers they
// include or changing behavior mid-air after receiving an override.
if (Base)
return Base->getProjectInfo(File);

return llvm::None;
}
} // namespace clangd
Expand Down
3 changes: 2 additions & 1 deletion clang-tools-extra/clangd/GlobalCompilationDatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ std::unique_ptr<GlobalCompilationDatabase>
getQueryDriverDatabase(llvm::ArrayRef<std::string> QueryDriverGlobs,
std::unique_ptr<GlobalCompilationDatabase> Base);


/// Wraps another compilation database, and supports overriding the commands
/// using an in-memory mapping.
class OverlayCDB : public GlobalCompilationDatabase {
Expand All @@ -134,6 +133,8 @@ class OverlayCDB : public GlobalCompilationDatabase {
llvm::Optional<tooling::CompileCommand>
getCompileCommand(PathRef File) const override;
tooling::CompileCommand getFallbackCommand(PathRef File) const override;
/// Project info is gathered purely from the inner compilation database to
/// ensure consistency.
llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;

/// Sets or clears the compilation command for a particular file.
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/XRefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ const syntax::Token *findNearbyIdentifier(const SpelledWord &Word,
// Find where the word occurred in the token stream, to search forward & back.
auto *I = llvm::partition_point(SpelledTokens, [&](const syntax::Token &T) {
assert(SM.getFileID(T.location()) == SM.getFileID(Word.Location));
return T.location() >= Word.Location; // Comparison OK: same file.
return T.location() < Word.Location; // Comparison OK: same file.
});
// Search for matches after the cursor.
for (const syntax::Token &Tok : llvm::makeArrayRef(I, SpelledTokens.end()))
Expand Down
30 changes: 29 additions & 1 deletion clang-tools-extra/clangd/test/initialize-params.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,35 @@
# CHECK-NEXT: "capabilities": {
# CHECK-NEXT: "codeActionProvider": true,
# CHECK-NEXT: "completionProvider": {
# CHECK-NEXT: "allCommitCharacters": " \t()[]{}<>:;,+-/*%^&#?.=\"'|",
# CHECK-NEXT: "allCommitCharacters": [
# CHECK-NEXT: " ",
# CHECK-NEXT: "\t",
# CHECK-NEXT: "(",
# CHECK-NEXT: ")",
# CHECK-NEXT: "[",
# CHECK-NEXT: "]",
# CHECK-NEXT: "{",
# CHECK-NEXT: "}",
# CHECK-NEXT: "<",
# CHECK-NEXT: ">",
# CHECK-NEXT: ":",
# CHECK-NEXT: ";",
# CHECK-NEXT: ",",
# CHECK-NEXT: "+",
# CHECK-NEXT: "-",
# CHECK-NEXT: "/",
# CHECK-NEXT: "*",
# CHECK-NEXT: "%",
# CHECK-NEXT: "^",
# CHECK-NEXT: "&",
# CHECK-NEXT: "#",
# CHECK-NEXT: "?",
# CHECK-NEXT: ".",
# CHECK-NEXT: "=",
# CHECK-NEXT: "\"",
# CHECK-NEXT: "'",
# CHECK-NEXT: "|"
# CHECK-NEXT: ],
# CHECK-NEXT: "resolveProvider": false,
# CHECK-NEXT: "triggerCharacters": [
# CHECK-NEXT: ".",
Expand Down
17 changes: 11 additions & 6 deletions clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,21 @@ CompileFlags: { Add: [foo, bar] }
Add: |
b
az
---
Index:
Background: Skip
)yaml";
auto Results = Fragment::parseYAML(YAML, "config.yaml", Diags.callback());
EXPECT_THAT(Diags.Diagnostics, IsEmpty());
ASSERT_EQ(Results.size(), 2u);
EXPECT_FALSE(Results.front().If.HasUnrecognizedCondition);
EXPECT_THAT(Results.front().If.PathMatch, ElementsAre(Val("abc")));
EXPECT_THAT(Results.front().CompileFlags.Add,
ElementsAre(Val("foo"), Val("bar")));
ASSERT_EQ(Results.size(), 3u);
EXPECT_FALSE(Results[0].If.HasUnrecognizedCondition);
EXPECT_THAT(Results[0].If.PathMatch, ElementsAre(Val("abc")));
EXPECT_THAT(Results[0].CompileFlags.Add, ElementsAre(Val("foo"), Val("bar")));

EXPECT_THAT(Results[1].CompileFlags.Add, ElementsAre(Val("b\naz\n")));

EXPECT_THAT(Results.back().CompileFlags.Add, ElementsAre(Val("b\naz\n")));
ASSERT_TRUE(Results[2].Index.Background);
EXPECT_EQ("Skip", *Results[2].Index.Background.getValue());
}

TEST(ParseYAML, Locations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,22 @@ TEST(GlobalCompilationDatabaseTest, NonCanonicalFilenames) {
llvm::sys::path::append(File, "blabla", "..", "a.cc");

EXPECT_TRUE(DB.getCompileCommand(File));
EXPECT_TRUE(DB.getProjectInfo(File));
EXPECT_FALSE(DB.getProjectInfo(File));
}

TEST_F(OverlayCDBTest, GetProjectInfo) {
OverlayCDB DB(Base.get());
Path File = testPath("foo.cc");
Path Header = testPath("foo.h");

EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot());
EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot());

// Shouldn't change after an override.
DB.setCompileCommand(File, tooling::CompileCommand());
EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot());
EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot());
}
} // namespace
} // namespace clangd
} // namespace clang
9 changes: 8 additions & 1 deletion clang-tools-extra/clangd/unittests/XRefsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,14 @@ TEST(LocateSymbol, NearbyIdentifier) {

// h^i
)cpp",
};
R"cpp(
// prefer nearest occurrence even if several matched tokens
// have the same value of `floor(log2(<token line> - <word line>))`.
int hello;
int x = hello, y = hello;
int z = [[hello]];
// h^ello
)cpp"};
for (const char *Test : Tests) {
Annotations T(Test);
auto AST = TestTU::withCode(T.code()).build();
Expand Down
Loading