Skip to content

LLVM and LLVM-SPIRV-Translator pulldown #1509

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 1,022 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1022 commits
Select commit Hold shift + click to select a range
253034f
Merge from 'sycl' to 'sycl-web'
Apr 2, 2020
f7f9322
[Attributor][NFC] Cleanup leftover check lines
jdoerfert Mar 24, 2020
b1c788d
[Attributor][FIX] Prevent alignment breakage wrt. must-tail calls
jdoerfert Apr 2, 2020
5bac8d4
Revert "[ORC] Export __cxa_atexit from the main JITDylib in LLJIT."
nico Apr 2, 2020
9e19693
[Attributor] Derive better alignment for accessed pointers
jdoerfert Apr 2, 2020
54d6a60
[Attributor][NFC] Predetermine the module
jdoerfert Mar 17, 2020
a8b2fed
[Utils][FIX] Properly deal with occasionally deleted functions
jdoerfert Apr 2, 2020
ac96c8f
[Attributor][FIX] Do not compute ranges for arguments of declarations
jdoerfert Mar 23, 2020
bcd8009
[Attributor] Use the proper context instruction in genericValueTraversal
jdoerfert Apr 2, 2020
7f5fe30
[cmake] Only set deps for an ExternalProject if the type is executabl…
lanza Mar 31, 2020
2ede5dc
[DOC] Remove too strong restriction for ‘llvm.experimental.gc.statepo…
Mar 31, 2020
af1b7d0
Correct copy-pasteo in lua script language description
emaste Apr 2, 2020
b0b1f45
[LLD][ELF] Follow the common pattern in a message about an undefined …
igorkudrin Mar 31, 2020
d1705c1
[CUDA][NFC] Split math.h functions out of __clang_cuda_device_functio…
jdoerfert Apr 2, 2020
c9ae3c5
[openmp] Disable tests flaky on Debian
vitalybuka Apr 2, 2020
410cfc4
[OpenMP][FIX] Add second include after header was split in d1705c1196
jdoerfert Apr 2, 2020
85adce3
[PPCInstPrinter] Change B to print the target address in hexadecimal …
MaskRay Apr 2, 2020
cbd3969
[PPCInstPrinter] Delete an unneeded overload of printBranchOperand. NFC
MaskRay Apr 2, 2020
d9dbe81
Merge from 'master' to 'sycl-web' (#6)
bader Apr 2, 2020
61e8973
[libc++] Simplify the configuration of the C++ ABI library
ldionne Apr 2, 2020
de22d71
[llvm-exegesis] 'Min' repetition mode
LebedevRI Apr 2, 2020
b0b5f04
[OpenMP][FIX] Undo changes accidentally already introduced in NFC commit
jdoerfert Apr 2, 2020
c18d559
[OpenMP][NFCI] Move OpenMP clause information to `lib/Frontend/OpenMP`
jdoerfert Mar 31, 2020
1858f4b
Revert "[OpenMP][NFCI] Move OpenMP clause information to `lib/Fronten…
jdoerfert Apr 2, 2020
b420065
[clangd] Fix an assertion crash in ReferenceFinder.
hokein Apr 2, 2020
a157cde
[NFC][X86] Refine code in X86AsmBackend
KanRobert Apr 2, 2020
9f92d46
Revert "[NFC][X86] Refine code in X86AsmBackend"
KanRobert Apr 2, 2020
d08fadd
[X86] Add SERIALIZE instruction.
tianqingw Apr 2, 2020
c3ef971
[lit] Improve handling of timeouts and max failures
yln Feb 27, 2019
7314aea
[clang] Move branch-protection from CodeGenOptions to LangOptions
DanielKristofKiss Apr 2, 2020
deb9022
Fix RUN line in AArch64/speculation-hardening.ll
kbeyls Apr 1, 2020
29d253c
[Object] Add the method for checking if a section is a debug section
Apr 2, 2020
550ab58
[NFC] Fix performance issue in LiveDebugVariables
OCHyams Apr 2, 2020
189d2e2
[Alignment][NFC] Use more Align versions of various functions
gchatelet Apr 2, 2020
a63b5c9
[CallSiteSplitting] Simplify isPredicateOnPHI & continue checking PHIs.
fhahn Apr 2, 2020
fb4aa30
[ExpandMemCmp] Allow overlaping loads in the zero-relational case.
legrosbuffle Mar 10, 2020
96cae16
[NFC] Preparatory work for D77292
gchatelet Apr 2, 2020
8cc6f5b
[NFC][update_llc_test_checks] Remove the redundant SCRUB_LOOP_COMMENT…
zhangkangcool Apr 2, 2020
62be834
Recommit "[lldb] Fix TestSettings.test_pass_host_env_vars on windows"
labath Mar 25, 2020
c697dd9
[ARM] Make remaining MVE instruction predictable
davemgreen Mar 28, 2020
fbd53ff
[ARM] MVE VMULL patterns
davemgreen Apr 1, 2020
ce8b85c
[NFC][PowerPC] Add a new test case loop-comment.ll
zhangkangcool Apr 2, 2020
07b6c0b
[gn build] remove NOSORT from clang/Headers/BUILD.gn
nico Apr 2, 2020
3d8950b
[gn build] Port d08fadd6628
llvmgnsyncbot Apr 2, 2020
2a645ab
[gn build] Port d1705c1196f
llvmgnsyncbot Apr 2, 2020
0fb8a53
tsan: don't check libc dependency on FreeBSD
dvyukov Apr 2, 2020
316e220
[llvm-mca] Cleanup unnecessary includes from headers
RKSimon Apr 2, 2020
0a2131b
[mlir] LLVMFuncOp: provide a capability to pass attributes through to…
ftynse Mar 30, 2020
37ced5a
[clang][AARCH64] Add __ARM_FEATURE_{PAC, BTI}_DEFAULT defines
DanielKristofKiss Apr 2, 2020
e6cb4b6
[Clang][CodeGen] Fixing mismatch between memory layout and const expr…
pratlucas Mar 27, 2020
b02c7a8
Fix "result of 32-bit shift implicitly converted to 64 bits" MSVC war…
RKSimon Apr 2, 2020
5e508b9
[llvm-dwarfdump] Add the --show-sections-sizes option
Apr 2, 2020
ab25d37
[gn build] Port 5e508b9bac0
llvmgnsyncbot Apr 2, 2020
8348e9d
[LoopTerminology] Make term names bold
baziotis Apr 2, 2020
ecb048c
[InstCombine] add tests for disguised vector trunc; NFC
rotateright Apr 1, 2020
a19b27b
[PhaseOrdering] add test for vector trunc; NFC
rotateright Apr 2, 2020
9da6a40
[OpenCL] Add sub-group builtin functions
svenvh Apr 2, 2020
af39151
Revert "[lld] Initial commit for new Mach-O backend"
ostannard Apr 2, 2020
13a1504
[OPENMP50]Add initial support for OpenMP 5.0 iterator.
alexey-bataev Apr 1, 2020
451741a
[lldb] Change Communication::SetConnection to take a unique_ptr
labath Apr 2, 2020
9dcac87
[NFC][PowerPC] Using update_llc_test_checks.py to update atomics-regr…
zhangkangcool Apr 2, 2020
36d4421
[LoopDataPrefetch + SystemZ] Let target decide on prefetching for eac…
JonPsson Oct 31, 2019
c00cb76
[NFC] Split Knowledge retention and place it more appropriatly
Ralender Apr 2, 2020
1008435
Revert "[InstCombine] do not exclude min/max from icmp with casted op…
rotateright Apr 2, 2020
bcaa017
[libc++] Fix linking libc++abi in standalone builds
tambry Apr 2, 2020
55e32e9
[lldb] update eArgTypeScriptLang description to mention lua
emaste Apr 2, 2020
7e02da7
[SystemZ] Add isCommutable flag on vector instructions.
JonPsson Apr 1, 2020
183fba6
Add OMPIterator case in switch statement to silence warnings
scentini Apr 2, 2020
6668453
[docs] use git diff instead of git format-patch
AlexanderLanin Apr 2, 2020
54d0a55
Fix several typos in the attribute documentation.
AaronBallman Apr 2, 2020
d5fa8b1
[libc++] Reimplement the dynamic filesystem helper without using Python
ldionne Mar 30, 2020
da8eda1
[clangd] Get rid of redundant make_uniques
kadircet Apr 2, 2020
1525232
[analyzer] StdLibraryFunctionsChecker: fix bug with arg constraints
Apr 2, 2020
0e3a8a6
[libc++][test] Update _LIBCPP_SUPPRESS_DEPRECATED_(PUSH|POP)
CaseyCarter Apr 2, 2020
bacade1
[NFC] remove delcartion that shouldn't be there
Ralender Apr 2, 2020
dffc503
Revert "[SimplifyLibCalls] Erase replaced instructions"
d0k Apr 2, 2020
24bb2d1
[clangd] Add a tweak for adding "using" statement.
gislan Apr 2, 2020
fc83010
[clangd] Don't send semanticHighlights to clients that support semant…
sam-mccall Apr 1, 2020
9e3063e
[clangd] Support textDocument/semanticTokens/edits
sam-mccall Apr 1, 2020
c9f7cf5
NFC: Comment in TargetTransformInfo.h reformatted (by Michael Kruse).
JonPsson Apr 2, 2020
de88319
[LoopDataPrefetch] Remove unused include that's a layering violation
d0k Apr 2, 2020
322b532
[libc++] Attempt to fix the 'runtimes' build
ldionne Apr 2, 2020
42bb5cc
[ELF] Change some "Alias for " help messages to use double dashed opt…
MaskRay Apr 2, 2020
c886e2b
Revert "[gn build] Port 03f43b3aca36"
nico Apr 2, 2020
7ea6449
[gn build] Port 24bb2d1e776
llvmgnsyncbot Apr 2, 2020
2e9d223
[gn build] Port c00cb76274f
llvmgnsyncbot Apr 2, 2020
802bb8b
[mlir] StandardToLLVM conversion: remove dead code
ftynse Apr 2, 2020
51b3874
Convert for loops to entry-based iteration
shivammittal99 Apr 2, 2020
12fcbce
[InstCombine] add tests for cmyk benchmark; NFC
rotateright Apr 2, 2020
add9f1a
[mlir][LLVM] Finer-grained control for C interface emission
Apr 2, 2020
f5c1d44
[libc++] Try to fix Chromium's build
ldionne Apr 2, 2020
c3b5c98
[libc++abi] NFC: Add link to review in workaround comment
ldionne Apr 2, 2020
f2334a7
[AMDGPU] Fix crash in SILoadStoreOptimizer
rampitec Apr 1, 2020
b6050ca
[VectorCombine] transform bitcasted shuffle to narrower elements
rotateright Apr 2, 2020
f444806
[InstCombine] try to reduce shuffle with bitcasted operand
rotateright Apr 2, 2020
71fbd6e
Exit unwinding early when at the top of the stack and additional info…
Sterling-Augustine Mar 30, 2020
fb80b6b
Make it possible for lit.site.cfg to contain relative paths, and use …
nico Mar 31, 2020
c3d3c22
AMDGPU: Hack out noinline on functions using LDS globals
arsenm Apr 2, 2020
bf7a16a
[InlineFunction] Update valid return attributes at callsite within ca…
annamthomas Apr 1, 2020
631ee8b
Make fb80b6b2d58c4 actually work.
nico Apr 2, 2020
b78157c
[intel-pt] Implement a basic test case
Mar 31, 2020
ee4d034
Change pass registration generated code to allow users to selectively…
joker-eph Apr 2, 2020
ab11b9e
Revert "Make it possible for lit.site.cfg to contain relative paths, …
nico Apr 2, 2020
6acd300
Reland D75382 "[lld] Initial commit for new Mach-O backend"
MaskRay Apr 2, 2020
4fdb63b
[X86] Enable combineExtSetcc for vectors larger than 256 bits when we…
topperc Apr 2, 2020
ea3152b
[libc++][test] Partially revert msvc_stdlib_force_include.h _Pragma c…
CaseyCarter Apr 2, 2020
fd4d075
[llvm][TextAPI] adding inlining reexported libraries support
cyndyishida Apr 1, 2020
a16ba6f
Reland "Make it possible for lit.site.cfg to contain relative paths, …
nico Apr 2, 2020
a6a841e
[libc++] Refer to the Filesystem static test env as relative paths
ldionne Apr 1, 2020
90455db
[libc++] NFC: Add documentation for writing tests
ldionne Apr 2, 2020
0c85c48
utils: Tweak clang-parse-diagnostics-file for modules includes
dexonsmith Apr 2, 2020
75cf309
AMDGPU: Assume f32 denormals are enabled by default
arsenm Nov 1, 2019
ce2258c
clang/AMDGPU: Stop setting old denormal subtarget features
arsenm Apr 1, 2020
5660bb6
AMDGPU: Remove denormal subtarget features
arsenm Nov 18, 2019
192cccb
AMDGPU: Add some tests for exotic denormal mode combinations
arsenm Dec 11, 2019
f68cc2a
AMDGPU: Use 128-bit DS operations by default
arsenm Apr 1, 2020
cab904c
[lit] Remove unnecessary indirection in progress_callback
Apr 2, 2020
022f1e2
[lit] Refine filter error handling
Apr 2, 2020
b94afc1
iOS simulator testing: replace `simctl bootstatus` with boot+shutdown
Apr 2, 2020
2aab46a
[llvm-objdump][COFF][NFC] Split format-specific interfaces; add names…
hubert-reinterpretcast Apr 2, 2020
2680e88
AMDGPU: Fix broken check lines
arsenm Apr 2, 2020
0559844
Re-apply 0071eaaf089, "[ORC] Export __cxa_atexit ...", with fixes.
lhames Apr 2, 2020
e875ba1
Try again to get tests passing again on Windows.
nico Apr 3, 2020
8838d6d
try more to appease win bots
nico Apr 3, 2020
c024f3e
Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.addr int…
adrian-prantl Apr 2, 2020
93fe58c
Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.label in…
adrian-prantl Apr 2, 2020
30f18ed
[AMDGPU] Handle SMRD signed offset immediate
kerbowa Mar 30, 2020
aef0877
[mlir][Linalg] NFC - Rename Linalg and Vector EDSCs to avoid collisions
Apr 3, 2020
9c6f32a
[Coroutines] Simplify implementation using removePredecessor
junparser Apr 3, 2020
c7aff9a
another wild guess at the win bot-only failures
nico Apr 3, 2020
5998ace
Have lldb-vscode update the currently selecte thread and frame when i…
clayborg Apr 2, 2020
3a51920
[mlir][VectorOps] Implement canonicalization for TransposeOp.
grosul1 Apr 2, 2020
627e01f
[coroutines] Don't build promise init with no args
modocache Nov 21, 2019
20cb7a9
This might actually fix the Windows bots after a16ba6fea.
nico Apr 3, 2020
71f1ab5
[PowerPC] Remove unnecessary XSRSP instruction
ecnelises Apr 3, 2020
fe8ac0f
[x86] Fix Intel OpenCL builtin CalleeSavedRegs on skx
wenju-he Apr 3, 2020
71947ed
[AArch64][GlobalISel] Constrain reg operands in selectBrJT
Apr 2, 2020
be0a4fe
[X86] Add -flax-vector-conversions=none to more of the clang CodeGen …
topperc Apr 3, 2020
43f031d
Enable IBT(Indirect Branch Tracking) in JIT with CET(Control-flow Enf…
xiangzh1 Apr 3, 2020
88da019
Fix a bug in the inliner that causes subsequent double inlining
htyu Apr 3, 2020
a0983ed
Handle exp2 with proper vectorization and lowering to SVML calls
laithsakka Apr 3, 2020
31b6e18
Use git-clang-format as Arcanist linter
Apr 3, 2020
71e8021
[X86][NFC] Generalize the naming of "Retpoline Thunks" and related co…
scottconstable Apr 3, 2020
0cfdce2
[gn build] Port 71e8021d82c
llvmgnsyncbot Apr 3, 2020
b1d5810
[X86] Refactor X86IndirectThunks.cpp to Accommodate Mitigations other…
scottconstable Apr 3, 2020
fef2dab
Bugix for buildbot failure at commit 43f031d31264d20cfb8f1ebd606c66e5…
xiangzh1 Apr 3, 2020
bd1d70b
[DAG] Change isGCValue detection for statepoint lowering
Mar 31, 2020
69c8fb1
[DWARF5] Added support for debug_macro section parsing and dumping in…
SouraVX Mar 26, 2020
f13ce15
[DebugInfo] Rename getOffset() to getContribution(). NFC.
igorkudrin Apr 2, 2020
0a3845b
Silence -Wpessimizing-move warning
scentini Apr 3, 2020
5b519cf
[X86] Add Indirect Thunk Support to X86 to mitigate Load Value Inject…
scottconstable Apr 3, 2020
6825920
Silence -Wpessimizing-move warning
scentini Apr 3, 2020
9f5c786
[NFC] G_DYN_STACKALLOC realign iff align > 1, update documentation
gchatelet Apr 3, 2020
9b56cc9
[DebugInfo] Salvage debug info when sinking loop invariant instructions
OCHyams Apr 1, 2020
1aee1ae
Use --style file instead of --style LLVM
vitalybuka Apr 3, 2020
ca11c48
[Alignment][NFC] Convert MachineIRBuilder::buildDynStackAlloc to Align
gchatelet Apr 2, 2020
c7e1fc8
[AMDGPU] Fix CHECK lines
jayfoad Apr 3, 2020
1a584a8
[Alignment][NFC] Remove unused private functions
gchatelet Apr 2, 2020
da74537
[LLD][ELF][ARM] use .reloc directive for Thumb assembler tests
smithp35 Mar 30, 2020
02cb21d
Make helpers static. NFC.
d0k Apr 3, 2020
6aecf0c
Drop unused diagnostic. NFC.
d0k Apr 3, 2020
0718e3a
[mlir][vulkan-runner] Add support for 3D memrefs.
Apr 3, 2020
146d685
clang-format: [JS] detect C++ keywords.
mprobst Apr 2, 2020
107200a
[lldb][nfc] early exit/continue
kwk Apr 3, 2020
a46e7d7
[AMDGPU] Allow AGPR in inline asm
yxsamliu Apr 2, 2020
5e42636
[X86][AVX] Add tests showing failure to use chained PACKSS/PACKUS for…
RKSimon Apr 3, 2020
9068bcc
[Alignment][NFC] Deprecate InstrTypes getRetAlignment/getParamAlignment
gchatelet Apr 2, 2020
f22445b
[mips][test] Remove redundant and invalid `CHECK-NOT` directives. NFC
atanasyan Apr 3, 2020
d65557d
[NFC][XCOFF][AIX] Refactor get/setContainingCsect
jasonliudev Apr 3, 2020
3e1b8db
Revert "Use git-clang-format as Arcanist linter"
kadircet Apr 3, 2020
164ed7b
[clangd] Enable some nice clang-tidy checks by default.
sam-mccall Apr 2, 2020
0a173fd
[gn build] Port d65557d15d4
llvmgnsyncbot Apr 3, 2020
c484b3e
[Hexagon] Fix issue with non-preemptible STT_TLS symbols
SidManning Apr 2, 2020
74f00c6
[X86] Regenerate stack clash test to fix issue reported on D77354
RKSimon Apr 3, 2020
7521f3c
[X86] Regenerate soft fp legalization test to fix issue reported on D…
RKSimon Apr 3, 2020
b72fce1
Fix __builtin_amdgcn_workgroup_size_x/y/z return type
yxsamliu Apr 3, 2020
937040d
[libc++] Add REQUIRES for tests that need -fblocks and -fobjc-arc
ldionne Apr 2, 2020
4824b5e
[Alignment][NFC] Remove documentation and FIXME for deprecated functions
gchatelet Apr 3, 2020
3d94f30
[libc++] Fix is_pointer support for Objective-C++
ldionne Apr 3, 2020
7130503
[LoopOps] Return ArrayRefs from accessors instead of iterator_ranges
d0k Apr 3, 2020
aa8434f
[X86] Cleanup emulated TLS test checks. NFC
RKSimon Apr 3, 2020
e9511c0
[X86] Fix strong local function/global label issue reported on D77354
RKSimon Apr 3, 2020
58c242e
[X86] Fix gisel copy tests to fix issue reported on D77354
RKSimon Apr 3, 2020
40fc3de
[X86] Fix weak global label issue reported on D77354
RKSimon Apr 3, 2020
6897111
[MSan] Add COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED
iii-i Apr 3, 2020
88fbadd
[AST] clang::VectorType supports any size (that fits in unsigned)
sam-mccall Apr 2, 2020
80a2ddf
[libc++] Add an alternative Lit test format
ldionne Mar 30, 2020
80d4df5
[X86] Remove defunct section checks from emulated TLS tests to fix is…
RKSimon Apr 3, 2020
56decd9
[ELF] Allow invalid sh_size%sh_entsize!=0 for non-SHF_MERGE sections
MaskRay Apr 3, 2020
179f945
[SYCL] Remove explicit sycl_device attribute requirement
vladimirlaz Mar 31, 2020
57a5531
InstCombine: Reduce minnum/maxnum if inputs are casted
arsenm Apr 3, 2020
fe8b66c
[SYCL] Revert unnecessary changes
bader Apr 3, 2020
5f47f61
[PowerPC] Regenerate f128 test to fix issue reported on D77354
RKSimon Apr 3, 2020
43d2fc7
[LoopRotate] Cleanup test checks to fix issue reported on D77354
RKSimon Apr 3, 2020
63bfb3a
[lldb/Symbol] Reimplement Symbols::FindSymbolFileInBundle to use the VFS
JDevlieghere Apr 3, 2020
d144087
[lldb/Support] Treat empty FileSpec as an invalid file.
JDevlieghere Apr 3, 2020
6d24dd7
[InstSimplify] Regenerate compares tests to fix issue reported on D77354
RKSimon Apr 3, 2020
966ae76
Run update_llc_test on test/CodeGen/ARM/vmov.ll
john-brawn-arm Apr 2, 2020
cd58fb6
[ARM] Avoid pointless vrev of element-wise vmov
john-brawn-arm Mar 17, 2020
4ad9ca0
[ARM] Fix incorrect handling of big-endian vmov.i64
john-brawn-arm Mar 16, 2020
389704c
[PhaseOrdering] add shuffle tests based on D40633; NFC
rotateright Apr 3, 2020
30053c8
[AArch64] Fix swap-compare-operands test names to fix issue reported …
RKSimon Apr 3, 2020
b952d79
[cuda][hip] Fix `RegisterVar` function prototype.
darkbuck Apr 3, 2020
396b1ee
[LoopStrengthReduce] Fix test checks to fix issue reported on D77227
RKSimon Apr 3, 2020
8e7b25b
[NFC] Move ARM `opt -indvars` test from Codegen into Transforms
LebedevRI Apr 3, 2020
7d572ef
Revert "[SCEV] rewriteLoopExitValues(): even if have hard uses, still…
LebedevRI Apr 3, 2020
34a497b
[X86][SSE] lowerShuffleWithPACK - extend to use chained PACKs for lar…
RKSimon Apr 3, 2020
ae044c5
[CMAKE] Plumb include_directories() into tablegen()
stephenneuendorffer Mar 31, 2020
f288c21
Revert "[CMAKE] Plumb include_directories() into tablegen()"
stephenneuendorffer Apr 3, 2020
aaaa25e
[libc++] Remove useless nothing_to_do.pass.cpp tests
ldionne Apr 3, 2020
e4ae0a2
[Support/Path] sys::path::replace_path_prefix fix and simplifications
sylvain-audi Mar 31, 2020
ce97ce3
[VectorCombine] try to form a better extractelement
rotateright Apr 3, 2020
2225797
[YAMLParser] Scanner::setError - ensure we use the StringRef::iterato…
RKSimon Apr 3, 2020
b4b7c98
[libc++] Remove support for specifying LIBCXX_CXX_ABI_SYSTEM manually
ldionne Apr 3, 2020
0462795
[AMDGPU] Propagate AGPR RC from PHI to its PHI operands
rampitec Apr 2, 2020
0c0831f
[CMAKE] Plumb include_directories() into tablegen()
stephenneuendorffer Mar 31, 2020
b600809
Clean up usages of asserting vector getters in Type
christetreault-llvm Apr 3, 2020
f27f1e8
[mlir] DialectConversion: support block creation in ConversionPattern…
ftynse Apr 3, 2020
8c5dc08
[AMDGPU] Added label to test. NFC.
rampitec Apr 3, 2020
2c7ea1c
[clang-tidy] Address false positive in modernize-use-default-member-init
njames93 Apr 3, 2020
5d14c7b
[libc++] NFC: Remove unused CMake option
ldionne Apr 3, 2020
e8dcb6d
AMDGPU: Remove redundant virtual
arsenm Apr 3, 2020
178050c
AMDGPU: Use Register in more places
arsenm Apr 3, 2020
30ebafa
CodeGen: Convert some TII hooks to use Register
arsenm Apr 3, 2020
ea397a7
Support: Add specializations for reverseBits to use builtin
arsenm Mar 6, 2016
9657446
[compiler-rt] Build with correct ABI (PR38025)
snps-riyaz Mar 27, 2020
ba87430
[PowerPC] Replace subtract-from-zero float in version with fneg in Po…
ajwock Apr 3, 2020
f95a67d
[X86] Add RET-hardening Support to mitigate Load Value Injection (LVI)
scottconstable Apr 3, 2020
688450c
[GraphDiff] Extend GraphDiff to track a list of updates.
alinas Mar 27, 2020
d7a0516
Fix typo in test.
kpneal Apr 3, 2020
29a2b14
[ORC] Improve documention of memory ownership in the new Orc C bindings.
lhames Apr 3, 2020
210f40f
Test had incorrect check for nonzero count
pogo59 Apr 3, 2020
dbb0d8e
Don't use relpaths in lit cfg if build/source dir are on different dr…
nga888 Apr 3, 2020
9f1c35d
Revert "[PowerPC] Replace subtract-from-zero float in version with fn…
kpneal Apr 3, 2020
b947a84
[gn build] Port f95a67d8b8a
llvmgnsyncbot Apr 3, 2020
8023752
[nfc] [lldb] Unindent code - obvious part
jankratochvil Apr 3, 2020
c74dd64
[X86] Add a Pass that builds a Condensed CFG for Load Value Injection…
scottconstable Apr 3, 2020
6f8c450
[lit] Cleanly exit on user keyboard interrupt
yln Oct 24, 2019
275ee5d
[gn build] Port c74dd640fd7
llvmgnsyncbot Apr 3, 2020
e33a636
[mlir][Linalg] Employ finer-grained control of C interface emission
Apr 3, 2020
ba1ffd2
[OpenMP][NFC] Remove the need to include `OpenMPClause.h`
rnk Apr 3, 2020
1dbac99
Merge from 'sycl' to 'sycl-web'
Apr 4, 2020
2d5bf62
Merge from 'master' to 'sycl-web' (#1)
bader Apr 4, 2020
7bd70ca
Merge remote-tracking branch 'origin/sycl-web' into private/vlazarev/…
vladimirlaz Apr 8, 2020
f320800
Add translation of fast math flags for binary arithmetic ops
StuartDBrady Mar 25, 2020
29cba74
Move some tests to transcoding
AlexeySachkov Mar 31, 2020
07acd3d
Improve/fix translation of SPIR-V OpControlBarier to OCL1.2
AlexeySachkov Mar 26, 2020
59c3ff4
Enable SPV_INTEL_arbitrary_precision_integers extension
vmaksimo Feb 19, 2020
c8715aa
Avoid unnecessary type conversion
svenvh Apr 6, 2020
c0f45f7
[SYCL] Fix LIT failures after LLVM pulldown
vladimirlaz Apr 6, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions .arclint
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"linters": {
"clang-format": {
"type": "script-and-regex",
"script-and-regex.script": "utils/arcanist/clang-format.sh",
"script-and-regex.regex": "/^(?P<severity>[[:alpha:]]+)\n(?P<message>[^\n]+)\n(====|(?P<line>\\d),(?P<char>\\d)\n(?P<original>.*)>>>>\n(?P<replacement>.*)<<<<\n)$/s",
"include": [
"(\\.(cc|cpp|h)$)"
]
}
}
}
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-doc/Representation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void Info::mergeBase(Info &&Other) {
// Unconditionally extend the description, since each decl may have a comment.
std::move(Other.Description.begin(), Other.Description.end(),
std::back_inserter(Description));
std::sort(Description.begin(), Description.end());
llvm::sort(Description);
auto Last = std::unique(Description.begin(), Description.end());
Description.erase(Last, Description.end());
}
Expand All @@ -202,7 +202,7 @@ void SymbolInfo::merge(SymbolInfo &&Other) {
DefLoc = std::move(Other.DefLoc);
// Unconditionally extend the list of locations, since we want all of them.
std::move(Other.Loc.begin(), Other.Loc.end(), std::back_inserter(Loc));
std::sort(Loc.begin(), Loc.end());
llvm::sort(Loc);
auto Last = std::unique(Loc.begin(), Loc.end());
Loc.erase(Last, Loc.end());
mergeBase(std::move(Other));
Expand Down Expand Up @@ -314,7 +314,7 @@ bool Index::operator<(const Index &Other) const {
}

void Index::sort() {
std::sort(Children.begin(), Children.end());
llvm::sort(Children);
for (auto &C : Children)
C.sort();
}
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/ClangTidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ std::vector<std::string> ClangTidyASTConsumerFactory::getCheckNames() {
CheckNames.push_back(AnalyzerCheckNamePrefix + AnalyzerCheck.first);
#endif // CLANG_ENABLE_STATIC_ANALYZER

std::sort(CheckNames.begin(), CheckNames.end());
llvm::sort(CheckNames);
return CheckNames;
}

Expand Down
91 changes: 43 additions & 48 deletions clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ ClangTidyError::ClangTidyError(StringRef CheckName,
: tooling::Diagnostic(CheckName, DiagLevel, BuildDirectory),
IsWarningAsError(IsWarningAsError) {}


class ClangTidyContext::CachedGlobList {
public:
CachedGlobList(StringRef Globs) : Globs(Globs) {}
Expand Down Expand Up @@ -297,57 +296,54 @@ static bool IsNOLINTFound(StringRef NolintDirectiveText, StringRef Line,
return true;
}

static llvm::Optional<StringRef> getBuffer(const SourceManager &SM, FileID File,
bool AllowIO) {
// This is similar to the implementation of SourceManager::getBufferData(),
// but uses ContentCache::getRawBuffer() rather than getBuffer() if
// AllowIO=false, to avoid triggering file I/O if the file contents aren't
// already mapped.
bool CharDataInvalid = false;
const SrcMgr::SLocEntry &Entry = SM.getSLocEntry(File, &CharDataInvalid);
if (CharDataInvalid || !Entry.isFile())
return llvm::None;
const SrcMgr::ContentCache *Cache = Entry.getFile().getContentCache();
const llvm::MemoryBuffer *Buffer =
AllowIO ? Cache->getBuffer(SM.getDiagnostics(), SM.getFileManager(),
SourceLocation(), &CharDataInvalid)
: Cache->getRawBuffer();
if (!Buffer || CharDataInvalid)
return llvm::None;
return Buffer->getBuffer();
}

static bool LineIsMarkedWithNOLINT(const SourceManager &SM, SourceLocation Loc,
unsigned DiagID,
const ClangTidyContext &Context) {
bool Invalid;
const char *CharacterData = SM.getCharacterData(Loc, &Invalid);
if (Invalid)
const ClangTidyContext &Context,
bool AllowIO) {
FileID File;
unsigned Offset;
std::tie(File, Offset) = SM.getDecomposedSpellingLoc(Loc);
llvm::Optional<StringRef> Buffer = getBuffer(SM, File, AllowIO);
if (!Buffer)
return false;

// Check if there's a NOLINT on this line.
const char *P = CharacterData;
while (*P != '\0' && *P != '\r' && *P != '\n')
++P;
StringRef RestOfLine(CharacterData, P - CharacterData + 1);
StringRef RestOfLine = Buffer->substr(Offset).split('\n').first;
if (IsNOLINTFound("NOLINT", RestOfLine, DiagID, Context))
return true;

// Check if there's a NOLINTNEXTLINE on the previous line.
const char *BufBegin =
SM.getCharacterData(SM.getLocForStartOfFile(SM.getFileID(Loc)), &Invalid);
if (Invalid || P == BufBegin)
return false;

// Scan backwards over the current line.
P = CharacterData;
while (P != BufBegin && *P != '\n')
--P;

// If we reached the begin of the file there is no line before it.
if (P == BufBegin)
return false;

// Skip over the newline.
--P;
const char *LineEnd = P;

// Now we're on the previous line. Skip to the beginning of it.
while (P != BufBegin && *P != '\n')
--P;

RestOfLine = StringRef(P, LineEnd - P + 1);
if (IsNOLINTFound("NOLINTNEXTLINE", RestOfLine, DiagID, Context))
return true;

return false;
StringRef PrevLine =
Buffer->substr(0, Offset).rsplit('\n').first.rsplit('\n').second;
return IsNOLINTFound("NOLINTNEXTLINE", PrevLine, DiagID, Context);
}

static bool LineIsMarkedWithNOLINTinMacro(const SourceManager &SM,
SourceLocation Loc, unsigned DiagID,
const ClangTidyContext &Context) {
const ClangTidyContext &Context,
bool AllowIO) {
while (true) {
if (LineIsMarkedWithNOLINT(SM, Loc, DiagID, Context))
if (LineIsMarkedWithNOLINT(SM, Loc, DiagID, Context, AllowIO))
return true;
if (!Loc.isMacroID())
return false;
Expand All @@ -361,14 +357,13 @@ namespace tidy {

bool shouldSuppressDiagnostic(DiagnosticsEngine::Level DiagLevel,
const Diagnostic &Info, ClangTidyContext &Context,
bool CheckMacroExpansion) {
bool AllowIO) {
return Info.getLocation().isValid() &&
DiagLevel != DiagnosticsEngine::Error &&
DiagLevel != DiagnosticsEngine::Fatal &&
(CheckMacroExpansion ? LineIsMarkedWithNOLINTinMacro
: LineIsMarkedWithNOLINT)(Info.getSourceManager(),
Info.getLocation(),
Info.getID(), Context);
LineIsMarkedWithNOLINTinMacro(Info.getSourceManager(),
Info.getLocation(), Info.getID(),
Context, AllowIO);
}

} // namespace tidy
Expand Down Expand Up @@ -680,7 +675,7 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors() {
for (auto &FileAndEvents : FileEvents) {
std::vector<Event> &Events = FileAndEvents.second;
// Sweep.
std::sort(Events.begin(), Events.end());
llvm::sort(Events);
int OpenIntervals = 0;
for (const auto &Event : Events) {
if (Event.Type == Event::ET_End)
Expand Down Expand Up @@ -710,9 +705,9 @@ struct LessClangTidyError {
const tooling::DiagnosticMessage &M1 = LHS.Message;
const tooling::DiagnosticMessage &M2 = RHS.Message;

return
std::tie(M1.FilePath, M1.FileOffset, LHS.DiagnosticName, M1.Message) <
std::tie(M2.FilePath, M2.FileOffset, RHS.DiagnosticName, M2.Message);
return std::tie(M1.FilePath, M1.FileOffset, LHS.DiagnosticName,
M1.Message) <
std::tie(M2.FilePath, M2.FileOffset, RHS.DiagnosticName, M2.Message);
}
};
struct EqualClangTidyError {
Expand All @@ -726,7 +721,7 @@ struct EqualClangTidyError {
std::vector<ClangTidyError> ClangTidyDiagnosticConsumer::take() {
finalizeLastError();

std::sort(Errors.begin(), Errors.end(), LessClangTidyError());
llvm::sort(Errors, LessClangTidyError());
Errors.erase(std::unique(Errors.begin(), Errors.end(), EqualClangTidyError()),
Errors.end());
if (RemoveIncompatibleErrors)
Expand Down
11 changes: 4 additions & 7 deletions clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,12 @@ class ClangTidyContext {
/// This does not handle suppression of notes following a suppressed diagnostic;
/// that is left to the caller is it requires maintaining state in between calls
/// to this function.
/// The `CheckMacroExpansion` parameter determines whether the function should
/// handle the case where the diagnostic is inside a macro expansion. A degree
/// of control over this is needed because handling this case can require
/// examining source files other than the one in which the diagnostic is
/// located, and in some use cases we cannot rely on such other files being
/// mapped in the SourceMapper.
/// If `AllowIO` is false, the function does not attempt to read source files
/// from disk which are not already mapped into memory; such files are treated
/// as not containing a suppression comment.
bool shouldSuppressDiagnostic(DiagnosticsEngine::Level DiagLevel,
const Diagnostic &Info, ClangTidyContext &Context,
bool CheckMacroExpansion = true);
bool AllowIO = true);

/// A diagnostic consumer that turns each \c Diagnostic into a
/// \c SourceManager-independent \c ClangTidyError.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ namespace clang {
namespace tidy {
namespace modernize {

namespace {
AST_MATCHER_P(InitListExpr, initCountIs, unsigned, N) {
return Node.getNumInits() == N;
}
} // namespace

static StringRef getValueOfValueInit(const QualType InitType) {
switch (InitType->getScalarTypeKind()) {
case Type::STK_CPointer:
Expand Down Expand Up @@ -190,15 +196,21 @@ void UseDefaultMemberInitCheck::storeOptions(
}

void UseDefaultMemberInitCheck::registerMatchers(MatchFinder *Finder) {
auto Init =
auto InitBase =
anyOf(stringLiteral(), characterLiteral(), integerLiteral(),
unaryOperator(hasAnyOperatorName("+", "-"),
hasUnaryOperand(integerLiteral())),
floatLiteral(),
unaryOperator(hasAnyOperatorName("+", "-"),
hasUnaryOperand(floatLiteral())),
cxxBoolLiteral(), cxxNullPtrLiteralExpr(), implicitValueInitExpr(),
initListExpr(), declRefExpr(to(enumConstantDecl())));
declRefExpr(to(enumConstantDecl())));

auto Init =
anyOf(initListExpr(anyOf(
allOf(initCountIs(1), hasInit(0, ignoringImplicit(InitBase))),
initCountIs(0))),
InitBase);

Finder->addMatcher(
cxxConstructorDecl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,53 +61,8 @@ formatDereference(const ast_matchers::MatchFinder::MatchResult &Result,
return (llvm::Twine("*") + Text).str();
}

// Trying to get CallExpr in which CxxConstructExpr is called.
static const clang::CallExpr *
tryGetCallExprAncestorForCxxConstructExpr(const Expr *TheExpr,
ASTContext &Context) {
// We skip nodes such as CXXBindTemporaryExpr, MaterializeTemporaryExpr.
for (ast_type_traits::DynTypedNode DynParent : Context.getParents(*TheExpr)) {
if (const auto *Parent = DynParent.get<Expr>()) {
if (const auto *TheCallExpr = dyn_cast<CallExpr>(Parent))
return TheCallExpr;

if (const clang::CallExpr *TheCallExpr =
tryGetCallExprAncestorForCxxConstructExpr(Parent, Context))
return TheCallExpr;
}
}

return nullptr;
}

// Check that ParamDecl of CallExprDecl has rvalue type.
static bool checkParamDeclOfAncestorCallExprHasRValueRefType(
const Expr *TheCxxConstructExpr, ASTContext &Context) {
if (const clang::CallExpr *TheCallExpr =
tryGetCallExprAncestorForCxxConstructExpr(TheCxxConstructExpr,
Context)) {
for (unsigned i = 0; i < TheCallExpr->getNumArgs(); ++i) {
const Expr *Arg = TheCallExpr->getArg(i);
if (Arg->getSourceRange() == TheCxxConstructExpr->getSourceRange()) {
if (const auto *TheCallExprFuncProto =
TheCallExpr->getCallee()
->getType()
->getPointeeType()
->getAs<FunctionProtoType>()) {
if (TheCallExprFuncProto->getParamType(i)->isRValueReferenceType())
return true;
}
}
}
}

return false;
}

AST_MATCHER(CXXConstructExpr,
matchedParamDeclOfAncestorCallExprHasRValueRefType) {
return checkParamDeclOfAncestorCallExprHasRValueRefType(
&Node, Finder->getASTContext());
AST_MATCHER(MaterializeTemporaryExpr, isBoundToLValue) {
return Node.isBoundToLvalueReference();
}

} // end namespace
Expand Down Expand Up @@ -141,11 +96,11 @@ void RedundantStringCStrCheck::registerMatchers(
// 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(
cxxConstructExpr(
StringConstructorExpr, hasArgument(0, StringCStrCallExpr),
unless(matchedParamDeclOfAncestorCallExprHasRValueRefType())),
this);
Finder->addMatcher(cxxConstructExpr(StringConstructorExpr,
hasArgument(0, StringCStrCallExpr),
unless(hasParent(materializeTemporaryExpr(
unless(isBoundToLValue()))))),
this);

// Detect: 's == str.c_str()' -> 's == str'
Finder->addMatcher(
Expand Down
Loading