Skip to content

Flaub sync #23

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,958 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1958 commits
Select commit Hold shift + click to select a range
200bb51
AMDGPU/GlobalISel: Refactor special argument management
arsenm Jul 20, 2020
85342c2
[ARM] Optimize immediate selection
Jul 29, 2020
2078771
[SVE][CodeGen] Add simple integer add tests for SVE tuple types
david-arm Jul 16, 2020
60280e9
[Analysis] TTI: Add CastContextHint for getCastInstrCost
davemgreen Jul 29, 2020
9ddb289
[ARM] Tune getCastInstrCost for extending masked loads and truncating…
davemgreen Jul 29, 2020
823ffef
[mlir][Standard] Allow unranked memrefs as operands to dim and rank
Jul 29, 2020
7518210
[TTI] Move abs/smax/smin/umax/umin cost expansion to ICA getIntrinsic…
RKSimon Jul 29, 2020
8725a49
[ELF][test] Add test coverage of `__real_` to wrap-plt.s
nga888 Jul 28, 2020
d1a3396
[Driver][ARM] Disable unsupported features when nofp arch extension i…
vhscampos Jul 21, 2020
0a0f282
[CostModel][X86] Add SSE costs for ABS intrinsics
RKSimon Jul 29, 2020
71bf6dd
[Driver][ARM] Fix testcase that should only run on ARM
vhscampos Jul 29, 2020
8c3262a
[ConstantFolding] update test checks FP min/max intrinsics
rotateright Jul 29, 2020
ad793ed
Forward extent tensors through shape.broadcast.
tpopp Jul 29, 2020
1ae63b4
[clang][NFC] Pass the ASTContext to CXXRecordDecl::setCaptures
riccibruno Jul 28, 2020
517fe05
[clang][NFC] clang-format fix after eb10b065f2a870b425dcc2040b9955e0e…
riccibruno Jul 29, 2020
6673c6c
[MLIR][Shape] Limit shape to standard lowerings to their supported types
frgossen Jul 29, 2020
99166fd
[SCEVExpander] Add option to preserve LCSSA directly.
fhahn Jul 29, 2020
672df0f
[InstSimplify] add tests for expandCommutativeBinOp; NFC
aqjune Jul 29, 2020
2c662f3
[flang] Fix bug with intrinsic in type declaration stmt
tskeith Jul 29, 2020
8d27be8
[OpenCL] Add global_device and global_host address spaces
bader Jul 29, 2020
b99630e
[clang-tidy] Fix RedundantStringCStrCheck with r values
njames93 Jul 29, 2020
1aaf8aa
[mlir][Linalg] Conv1D, Conv2D and Conv3D added as named ops
limo1996 Jul 29, 2020
5fc34fa
[MLIR][Shape] Limit shape to SCF lowering patterns to their supported…
frgossen Jul 29, 2020
d1abca1
[CostModel][X86] Add SSE costs for SMAX/SMIN/UMAX/UMIN intrinsics
RKSimon Jul 29, 2020
d5776f2
[NFC][PPC][AIX] Add test coverage for _Complex return values
cebowler Jul 29, 2020
9f95895
[ConstantFolding] add tests for integer min/max intrinsics; NFC
rotateright Jul 29, 2020
9ee7d71
[ConstantFolding] fold integer min/max intrinsics
rotateright Jul 29, 2020
bfa1403
[DWARFYAML] Make the field names consistent with the DWARF spec. NFC.
higuoxing Jul 29, 2020
62beb7c
[clang-tidy] Fix module options being registered with different prior…
njames93 Jul 29, 2020
6a05c6b
[MachineCopyPropagation] BackwardPropagatableCopy: add check for hasO…
simonwallis2 Jul 29, 2020
7db017b
[OpenMP][Docs] Update Clang Support docs after D75591
jdoerfert Jul 15, 2020
ee05167
[OpenMP] Allow traits for the OpenMP context selector `isa`
jdoerfert Jul 7, 2020
5cf0c2e
[NewPM][PassInstrument] Add a new kind of before-pass callback that o…
Jul 28, 2020
7a2e112
[NewPM][PassInstrument] Make PrintIR and TimePasses to use before-pas…
Jul 28, 2020
9ad7c98
[SVE] Don't consider scalable vector types in SLPVectorizerPass::vect…
david-arm Jul 10, 2020
bbc2dde
[clang-tidy] Handled insertion only fixits when determining conflicts.
njames93 Jul 29, 2020
d42c7b2
AMDGPU: Account for the size of LDS globals used through constant
arsenm Jul 18, 2020
a4ade9e
[MachineVerifier] Handle the PHI node for verifyLiveVariables()
zhangkangcool Jul 29, 2020
3c20ede
[InstSimplify] fold integer min/max intrinsic with same args
rotateright Jul 29, 2020
3e8534f
[InstSimplify] allow partial undef constants for vector min/max folds
rotateright Jul 29, 2020
4a10029
[NewPM][Attributor] Pin tests with -attributor to legacy PM
aeubanks Jul 29, 2020
9f2f3b9
[OpenMP] Implement TR8 `present` motion modifier in Clang (1/2)
jdenny-ornl Jul 29, 2020
cee52dd
[OpenMP] Implement TR8 `present` motion modifier in runtime (2/2)
jdenny-ornl Jul 29, 2020
31342eb
[Statepoint] When using the tied def lowering, unconditionally use vr…
preames Jul 29, 2020
802c043
[PowerPC] Set v1i128 to expand for SETCC to avoid crash
zhangkangcool Jul 29, 2020
1d51dc3
[SimplifyCFG][LoopRotate] SimplifyCFG: disable common instruction hoi…
LebedevRI Jul 29, 2020
fdc9027
[DAG][AMDGPU][X86] Add SimplifyMultipleUseDemandedBits handling for S…
RKSimon Jul 29, 2020
ee9617e
[InstSimplify] try constant folding intrinsics before general simplif…
rotateright Jul 29, 2020
71d0a2b
[DFSan][NewPM] Port DataFlowSanitizer to NewPM
aeubanks Jul 27, 2020
3efc978
[LV] Add abs/smin/smax/umin/umax intrinsics to isTriviallyVectorizable
topperc Jul 29, 2020
c4823b2
[X86] Add custom lowering for llvm.roundeven with sse4.1.
topperc Jul 29, 2020
cd89094
[PGO] Remove insignificant function hash values from some tests.
hjyamauchi Jul 29, 2020
e7196bd
[Scudo][CMake] Add -fno-lto to Scudo libraries
aeubanks Jul 28, 2020
4add853
[lldb] Improve platform handling in CreateTargetInternal
JDevlieghere Jul 29, 2020
276f9e8
[WebAssembly] Fix getBottom for loops
aheejin Jul 29, 2020
0c4ea27
[gn build] Port 276f9e8cfaf
llvmgnsyncbot Jul 29, 2020
90b76da
GloblaISel: Remove unreachable condition
arsenm Jul 29, 2020
f05308a
[MLIR][NFC] Move Shape::WitnessType Declaration.
tpopp Jul 29, 2020
766cb61
AMDGPU: Relax restriction on folding immediates into physregs
arsenm Jul 20, 2020
7ff9575
[AArch64][GlobalISel] Select XRO addressing mode with wide immediates
Jul 28, 2020
5874304
Add more debug code for https://github.com/google/sanitizers/issues/1…
kcc Jul 29, 2020
0b7de79
GlobalISel: Implement lower for G_EXTRACT_VECTOR_ELT
arsenm Jul 27, 2020
b5e896c
[libc++][pstl] Remove c++98 from UNSUPPORTED annotations
ldionne Jul 29, 2020
82b6dec
[libc++] Remove c++98 from the possible Standards of the test suite
ldionne Jul 29, 2020
dc28675
Revert "[SCEVExpander] Add option to preserve LCSSA directly."
fhahn Jul 29, 2020
c114352
[lldb/test] Put hardware breakpoint tests together, NFC
tkrasnukha Jul 22, 2020
7e946d0
[compiler-rt][Darwin] Disable EXC_GUARD exceptions
Jul 29, 2020
59fac51
AMDGPU/GlobalISel: Handle llvm.amdgcn.reloc.constant
arsenm Jul 21, 2020
f7ec3e3
[lldb] Skip overlapping hardware and external breakpoints when writin…
tkrasnukha Jul 22, 2020
b352e62
[lldb] Make process plugins check whether a hardware breakpoint is re…
tkrasnukha Jul 22, 2020
ebaa8b1
[lldb] Don't use hardware index to determine whether a breakpoint sit…
tkrasnukha Jul 21, 2020
d8ba622
[AArch64][GlobalISel] Selection support for vector DUP[X]lane instruc…
aemerson Jul 29, 2020
8fe2abc
[Statepoint] Consolidate relocation type tracking [NFC]
preames Jul 29, 2020
0c0e360
[GlobalISel] Add G_INTRINSIC_LRINT and translate from llvm.lrint
aemerson Jul 24, 2020
d5c1f68
[lldb/BreakpointSite] Handle all ways of control flow
tkrasnukha Jul 29, 2020
e2d0b44
[DFSan] Add efficient fast16labels instrumentation mode.
morehouse Jul 29, 2020
7aaa856
[PowerPC] Add options to control paired vector memops support
Jul 28, 2020
e69138d
PR46859: Fix crash if declaring a template in a DeclScope with no Dec…
zygoloid Jul 29, 2020
da0bba5
[lldb/Breakpoint] Rename StoppointLocation to StoppointSite and drop …
tkrasnukha Jul 23, 2020
bdad24c
GlobalISel: Fix insert point in CSEMIRBuilder unit test
arsenm Jul 29, 2020
a5faf3c
[libc++] Re-enable tests for C11 math macros in <float.h> and <cfloat>
ldionne Jul 29, 2020
13b63be
[AMDGPU] prefer non-mfma in post-RA schedule
rampitec Jul 29, 2020
decfdb8
[AMDGPU] Fixed formatting in GCNHazardRecognizer.cpp. NFC.
rampitec Jul 29, 2020
1cbdf93
PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.
zygoloid Jul 29, 2020
f75564a
Reland "[SCEVExpander] Add option to preserve LCSSA directly."
fhahn Jul 29, 2020
e980913
[Tests] Split a file for ease of update
preames Jul 29, 2020
a1c9529
[X86][AVX] isHorizontalBinOp - relax no-lane-crossing limit for AVX1-…
RKSimon Jul 29, 2020
8dbea47
[PowerPC] Support for R_PPC64_REL24_NOTOC calls where the caller has …
VictorHuangIBM Jul 29, 2020
ed7bde0
[ELF][test] Fix ppc64-reloc-pcrel34-overflow.s
MaskRay Jul 29, 2020
6ce97ee
Fix invalid attempted explicit instantiation, which Clang now rejects.
zygoloid Jul 29, 2020
77c3b01
[mlir] fix error handling in rocm runtime wrapper
Jul 29, 2020
897bdca
[ConstantRange] Add API for intrinsics (NFC)
nikic Jul 25, 2020
8723280
[OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK
jdoerfert Jul 29, 2020
4f92ad5
[mlir] [VectorOps] [integration_test] Sparse matrix times vector (jag…
aartbik Jul 29, 2020
47d2c7c
[lldb] remove somewhat dangerous 'd'(etach) and 'k'(ill) shortcuts
llunak Oct 11, 2019
336c702
[lldb] change shortcut for 'step out' from 'o' to 'f'
llunak Oct 11, 2019
1397864
[lldb] implement 'up' and 'down' shortcuts in lldb gui
llunak Oct 5, 2019
755f91f
[Statepoint] Enable cross block relocates w/vreg lowering
preames Jul 29, 2020
e14a7ff
[libc] Adds fuzz test for strstr and alphabetizes string fuzz CMakeList.
cgyurgyik Jul 29, 2020
b08abf4
[OpenMP] Fix D83281 issue on windows by allowing `dso_local` in CHECK…
jdoerfert Jul 29, 2020
01aa147
[NewPM][opt] Revert to legacy PM when any codegen passes are specified
aeubanks Jul 22, 2020
120e66b
[PGO] Include the mem ops into the function hash.
hjyamauchi Jul 28, 2020
d8e8e32
build: always add support for assembly targets on Darwin
compnerd Jul 22, 2020
5cd695d
[InstSimplify] fold min/max with opposite of limit value
rotateright Jul 29, 2020
fef513f
[InstSimplify] fold min/max intrinsic with undef operand
rotateright Jul 29, 2020
0dcd4a2
[opt][NewPM] Fix typo
aeubanks Jul 29, 2020
b1c1825
[X86] Remove unused argument from HandleAVX512Operand in the assembly…
topperc Jul 29, 2020
6700f4b
[LLDB] Add checks for ValueObjectSP in Cocoa summary providers
shafik Jul 29, 2020
ae7589e
Revert "[PGO] Include the mem ops into the function hash."
hjyamauchi Jul 29, 2020
dc22182
[darwin] build and link with a separate compiler-rt builtins library
hyp Jul 24, 2020
6587ff7
[lldb] Fix llvm-lit in standalone builds
JDevlieghere Jul 29, 2020
926c147
Revert "build: always add support for assembly targets on Darwin"
francisvm Jul 29, 2020
005991a
[DFSan] Remove dfsan_use_fast16labels from abilist.
morehouse Jul 29, 2020
7105925
[llvm][NFC] TensorSpec abstraction for ML evaluator
mtrofin Jul 29, 2020
0da582d
GlobalISel: Handle llvm.roundeven
arsenm Jul 19, 2020
44e7d44
[Darwin][compiler-rt] kern.osproductversion unavailable pre macOS 10.13
Jul 29, 2020
618a0c0
[profile] Add InstrProfilingInternal.c.o to Darwin kext builtins
vedantk Jul 30, 2020
111a02d
[JumpThreading] Fold br(freeze(undef))
aqjune Jul 30, 2020
a648834
PR46729: Reject explicit and partial specializations with C linkage.
zygoloid Jul 29, 2020
9a3dbc9
[lldb] Move finish_swig logic into a function in the binding dir
JDevlieghere Jul 30, 2020
66c572a
GlobalISel: Handle assorted no-op intrinsics
arsenm Jul 29, 2020
7d0b32c
GlobalISel: Use result of find rather than rechecking map
arsenm Jul 29, 2020
5aa2fd8
[AMDGPU] DWARF proposal changes for expression context
t-tye Jul 3, 2020
a18953c
[PowerPC] Fix RM operands for some instructions
zhangkangcool Jul 30, 2020
eee7cc9
[llvm-readobj] NFC. Add -help description of --hex-dump and
Jul 25, 2020
ec93293
NFC. Fix comments
Jul 28, 2020
8224c50
For some tests targeting SystemZ, -march=z13 ---> -mcpu=z13
Jul 30, 2020
f71deb4
[DebugInfo] Fix to ctor homing to ignore classes with trivial ctors.
amykhuang Jul 30, 2020
9611ee5
[X86] Teach the assembler parser to handle a '*' between segment regi…
topperc Jul 30, 2020
e24f5f3
[AMDGPU] DWARF proposal changes
t-tye Jul 3, 2020
629467e
[AMDGPU] Fix DWARF extensions User Guide table of contents
t-tye Jul 30, 2020
b22b97b
[Analyzer] Use of BugType in DereferenceChecker (NFC).
balazske Jul 30, 2020
3678ad8
[NFC] Remove unused variable
xortator Jul 30, 2020
032ed39
[Support] Class to facilitate file locking
spavloff Apr 29, 2020
1759744
[X86] Don't pass some many parameters to ParseMemOperand by reference.
topperc Jul 30, 2020
07bb824
[X86] Pass the OperandVector to ParseMemOperand instead of returning …
topperc Jul 30, 2020
cd4e8d7
[clangd] Fix an assertion failure in TargetFinder's heuristic resolut…
hokein Jul 29, 2020
647e9a5
[MLIR][SPIRVToLLVM] Conversion patterns for GLSL ops
georgemitenkov Jul 30, 2020
73c12bd
[Concepts] Fix a deserialization crash.
hokein Jul 30, 2020
23ad660
[SVE][CodeGen] At -O0 fallback to DAG ISel when translating alloca wi…
david-arm Jul 28, 2020
1745ba4
[Analyzer] Remove inclusion of uniqueing decl from diagnostic profile.
balazske Jul 30, 2020
3aab320
[MLIR][SPIRVToLLVM] Conversion for inverse sqrt and tanh
georgemitenkov Jul 30, 2020
0037a5f
[PHIElimination] Fix the killed flag for LowerPHINode()
zhangkangcool Jul 30, 2020
1880532
[MLIR][SPIRVToLLVM] Conversion of GLSL ops to LLVM intrinsics
georgemitenkov Jul 30, 2020
bbe5099
[compiler-rt][cmake] Simplify COMPILER_RT_HAS_VERSION_SCRIPT tests
rorth Jul 30, 2020
1ac72a0
[IPConstProp] Regenerate check lines.
fhahn Jul 9, 2020
3321703
[flang] Fix multi-config generator builds.
DavidTruby Jul 16, 2020
45a720a
[clang-tidy] Use StringMap for ClangTidyOptions::OptionsMap
njames93 Jul 30, 2020
276ed5f
[DAGCombiner] Fold sext_inreg of a masked load into a sign extended m…
SamTebbs33 Jul 22, 2020
006f6f8
[DWARFYAML] Make the 'AddressSize', 'SegmentSelectorSize' fields opti…
higuoxing Jul 30, 2020
3da6a97
[DWARFYAML] Make the 'Length' field of the address range table optional.
higuoxing Jul 30, 2020
05b1734
[clangd] findNearbyIdentifier(): fix the word search in the token str…
ArcsinX Jul 30, 2020
141b64a
[NFC] Failed cases for some patterns defined in DAGCombiner.cpp
EsmeYi Jul 30, 2020
a4a0844
[lldb] Don't use static locals for return value storage in some *AsCS…
Teemperor Jul 30, 2020
44a4ba8
[AArch64] Add machine-combiner tests with instruction level FMFs.
fhahn Jul 30, 2020
a262f0f
[clangd] Implement Relations request for remote index
kirillbobyrev Jul 30, 2020
2dec72b
[X86][SSE] combineExtractWithShuffle - extend extract(truncate(x),0) …
RKSimon Jul 30, 2020
cc52928
VectorUtils.h - reduce unnecessary includes. NFC.
RKSimon Jul 30, 2020
e77624a
[IPConstProp] Remove and move tests to SCCP.
fhahn Jul 30, 2020
a97940d
[MLIR][Shape] Limit `shape.rank` lowering to its extent tensor variant
frgossen Jul 30, 2020
59d6e81
Revert "[IPConstProp] Remove and move tests to SCCP."
fhahn Jul 30, 2020
67e41df
[flang] Expose specific to generic intrinsic name mapping
jeanPerier Jul 30, 2020
e12db3e
[mlir] Allow index as element type of memref
Jul 30, 2020
76d0750
[MLIR] Introduce inter-procedural memref layout normalization
avarmapml Jul 30, 2020
13a3d88
[MLIR] Don't pass separate LowerToLLVMOptions when we already pass a …
chsigg Jul 30, 2020
85defd2
[mlir][shape] Use memref of index in shape lowering
Jul 30, 2020
9be1bdc
[libc++] Add XFAIL for <float.h> and <cfloat> tests on older Clangs
ldionne Jul 30, 2020
1da0c47
[LoopVectorizer] Don't create unused block masks for reductions. NFC
davemgreen Jul 30, 2020
f7237ee
[ConstantFolding] add tests for abs intrinsic; NFC
rotateright Jul 30, 2020
04dc969
[XCOFF][AIX] Enable -ffunction-sections
jasonliudev Jul 29, 2020
142d0d3
[OPENMP]Fix PR46824: Global declare target pointer cannot be accessed…
alexey-bataev Jul 24, 2020
38272f4
[flang] Create HostAssoc symbols for uplevel references
tskeith Jul 30, 2020
b7292f2
Speculative GCC 5 build fix
zmodem Jul 30, 2020
dab8d61
[PowerPC][AIX] Move the testcase to proper dir
Jul 30, 2020
6316b00
Attributor.h - remove unnecessary includes. NFCI.
RKSimon Jul 30, 2020
b8c8d1b
AMDGPU: Convert some tests to use new buffer intrinsics
arsenm Jul 30, 2020
ef4e665
[AArch64] Fix operand definitions of XPACI/XPACD
momchil-velikov Jul 30, 2020
4e6176f
[AIX] Temporarily disable IncrementalProcessingTest partially
xling-liao Jul 29, 2020
b69357c
Revert "[OPENMP]Fix PR46824: Global declare target pointer cannot be …
alexey-bataev Jul 30, 2020
c4b7bfd
[clangd] NFC: Spell out types in index callback arguments
kirillbobyrev Jul 30, 2020
622e461
[OPENMP]Fix PR46824: Global declare target pointer cannot be accessed…
alexey-bataev Jul 30, 2020
19756ef
[OpenMP][IRBuilder] Support allocas in nested parallel regions
jdoerfert Jun 19, 2020
ebad64d
[OpenMP][FIX] Consistently use OpenMPIRBuilder if requested
jdoerfert Jun 29, 2020
d2c2248
[X86] Parse and ignore .arch directives
MaskRay Jul 30, 2020
7b11444
Align store conditional address
bcahoon Jul 30, 2020
b6635b5
[lldb] Add SBCommandInterpreterRunOptions to LLDB.h
JDevlieghere Jul 30, 2020
6a043ec
[clang-tidy] Fix ODR violation in unittests.
haoNoQ Jul 30, 2020
0a00a7d
[libc++] Use generator expression in Linker script generation
ldionne Oct 11, 2019
1260a15
[tsan] Fix the open and open64 interceptors to have correct declarati…
kubamracek Jul 30, 2020
33fd4a1
[AMDGPU/MemOpsCluster] Clean-up fixme's around mem ops clustering logic
hsmahesha Jul 30, 2020
3d06fc0
[OpenMP][Docs] Mark `present` motion modifier as done
jdenny-ornl Jul 30, 2020
3d6f530
[PGO] Include the mem ops into the function hash.
hjyamauchi Jul 29, 2020
1e8a9c3
[tsan] Fixup for 1260a155: Move variadic-open.cpp test into Darwin/ d…
kubamracek Jul 30, 2020
e263dcc
[libc] Implements isdigit and isalnum. Adds a utility header to inline
cgyurgyik Jul 30, 2020
09cb6f2
[lldb][NFC][test] Fix comment referring to FileCheck instead of yaml2obj
rupprecht Jul 29, 2020
4d83aa4
[MLIR][OpenMP] Fix OpenMPIRBuilder usage after D82470
jdoerfert Jul 30, 2020
3632f76
[WebAssembly] Fix GCC 5 build.
topperc Jul 30, 2020
555cf42
[NewPM][PassInstrument] Add PrintPass callback to StandardInstrumenta…
Jul 29, 2020
4a161bd
LoopUnroll.cpp - pass std::vector by const reference to needToInsertP…
RKSimon Jul 30, 2020
be198e0
[lldb][test] Move registers-target-xml-reading target to the correct …
rupprecht Jul 30, 2020
41909e9
[lldb] Add copy ctor/assignment operator to SBCommandInterpreterRunOp…
JDevlieghere Jul 30, 2020
5b32518
[AMDGPU] Do not use undef on indirect source
rampitec Jul 30, 2020
ce1eb7a
[WebAssembly] Fixed 64-bit indices in br_table
aardappel Jul 27, 2020
36a4f10
Fix computeHostNumPhysicalCores() for Linux on POWER and Linux on Z
Jul 30, 2020
7551fd5
[InstCombine] update test checks; NFC
rotateright Jul 30, 2020
6b8c641
[mlir] NFC: Expose `getElementPtrType` and `getSizes` methods of Allo…
pifon2a Jul 30, 2020
2062b37
[LAA] Avoid adding pointers to the checks if they are not needed.
fhahn Jul 30, 2020
3bb4889
[lldb/Test] Use self.assertIn in TestGdbRemoteTargetXmlPacket
JDevlieghere Jul 30, 2020
4c16eaf
[SCCP] Remove dead switch cases based on range information
nikic Jul 19, 2020
b4c7657
[ELF] Add --dependency-file option
petrhosek Jun 24, 2020
fac8453
[flang] Fix an assert on duplicate initializations
psteinfeld Jul 30, 2020
3ff7dcd
[CMake][Fuchsia] Include additional tools in the toolchain
petrhosek Jul 17, 2020
95d1e66
[CVP] Add tests for min/max/abs intrinsic comparisons (NFC)
nikic Jul 30, 2020
d8a98a9
[ConstantRange][CVP] Compute min/max/abs intrinsic ranges
nikic Jul 30, 2020
da324f9
[LLD] [Mingw] Don't export symbols from profile generate
SquallATF Jul 30, 2020
14c1b40
[compiler-rt] [profile] fix profile generate for mingw x86_64
SquallATF Jul 30, 2020
8c1a31d
[lldb/Docs] Add lldb-arm-ubuntu to the list of bots
JDevlieghere Jul 30, 2020
94f8120
[ConstantRange] Support abs with poison flag
nikic Jul 30, 2020
02c1bba
[lldb/Docs] Remove stale bot on GreenDragon and add reproducer one
JDevlieghere Jul 30, 2020
afae6d9
[SelectionDAG] Fix lowering of vector geps
jroelofs Jul 29, 2020
9ebeac6
[ConstantRange][CVP] Make use of abs poison flag
nikic Jul 30, 2020
3587de2
[lld-macho] Support __dso_handle for C++
int3 Jul 30, 2020
22e6648
[lld-macho] Implement -headerpad
int3 Jul 30, 2020
9821079
[lld-macho] Make __LINKEDIT sections contiguous
int3 Jul 30, 2020
243376c
AMDGPU: Put inexpensive ops first in AMDGPUAnnotateUniformValues::vis…
Jul 30, 2020
c89e46e
[lld-macho] Add comment for literal argument
int3 Jul 30, 2020
1e7f026
PR46908: Emit undef destroying_delete_t as an aggregate RValue.
zygoloid Jul 30, 2020
c23ae3f
[clang-tidy][NFC] Use StringMap for ClangTidyCheckFactories::FacoryMap
njames93 Jul 30, 2020
59156ba
[mlir][spirv] Add support for converting memref of vector to SPIR-V
ThomasRaoux Jul 30, 2020
e56e902
AMDGPU: Fix liveness errors when copying AGPR tuples
arsenm Jul 1, 2020
a34a8d5
[MLIR][NFC] Add SymbolUse::UseRange::empty()
jurahul Jul 30, 2020
763671f
[COFF] Port CallGraphSort to COFF from ELF
ZequanWu Jul 21, 2020
9f1dcdc
[JITLink] Allow JITLinkContext::notifyResolved to return an Error.
lhames Jul 30, 2020
8ce8cee
[llvm-jitlink] Add -harness option to llvm-jitlink.
lhames Jul 30, 2020
b811736
[gn build] Port 763671f387f
llvmgnsyncbot Jul 30, 2020
8dfb5d7
[clang codegen][AArch64] Use llvm.aarch64.neon.fcvtzs/u where it's ne…
efriedma-quic Jul 27, 2020
a32af82
[libc] Add a tool called WrapperGen.
Jul 29, 2020
abb8128
[doc] Describe the header guard style
mtrofin Jul 30, 2020
09f9f7d
[AArch64][GlobalISel] Add legalization & selection support for G_INTR…
aemerson Jul 24, 2020
7e88efa
[LegalizeTypes][SVE] Support widen/split legalization for SPLAT_VECTOR
efriedma-quic Jul 27, 2020
5760575
[debugserver/Apple Silicon] Handoff connections when attaching to tra…
dcci Jul 30, 2020
896f797
[profile] Remove dependence on getpagesize from InstrProfilingBuffer.c.o
vedantk Jul 30, 2020
24f5235
[ValueTracking] Add basic computeKnownBits support for llvm.abs intri…
topperc Jul 30, 2020
49def10
[Attributor] Add time trace support.
kuterd Jul 30, 2020
3ad09fd
[X86] Separate CPU Feature lists in X86.td between architecture featu…
topperc Jul 31, 2020
ec1445c
[X86] Fix for ballooning compile times due to Load Value Injection (L…
scottconstable Jul 31, 2020
aa77232
[NFC][AMDGPU] Improve fused fmul+fadd tests.
dfukalov Jul 30, 2020
8218eee
[OpenMP] Refactored the function `target`
shiltian Jul 31, 2020
61cab35
[NFC] Move findAllocaForValue into ValueTracking.h
vitalybuka Jul 31, 2020
724aef5
Merge branch 'master' into flaub-sync
Jul 31, 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.
9 changes: 9 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ b9c1b51e45b845debb76d8658edabca70ca56079

# r302496: That is the revert of r302421
ff63090b0e1072bd398b8efef8ae2291613a6ec9

# Fix more line endings changed in r320089. NFC.
d8f0e6caa91e230a486c948ab643174e40bdf215

# Correct line endings that got mixed up in r320089; NFC.
29dc5ded45447915d96ef7ca3f02acf2232282e0

# Remove line-endings added by r320089. NFC.
100a0eedc00b2bf48bcdc6c209c000745a4a0e48
11 changes: 5 additions & 6 deletions clang-tools-extra/clang-tidy/ClangTidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,11 @@ static void setStaticAnalyzerCheckerOpts(const ClangTidyOptions &Opts,
AnalyzerOptionsRef AnalyzerOptions) {
StringRef AnalyzerPrefix(AnalyzerCheckNamePrefix);
for (const auto &Opt : Opts.CheckOptions) {
StringRef OptName(Opt.first);
if (!OptName.startswith(AnalyzerPrefix))
StringRef OptName(Opt.getKey());
if (!OptName.consume_front(AnalyzerPrefix))
continue;
// Analyzer options are always local options so we can ignore priority.
AnalyzerOptions->Config[OptName.substr(AnalyzerPrefix.size())] =
Opt.second.Value;
AnalyzerOptions->Config[OptName] = Opt.getValue().Value;
}
}

Expand Down Expand Up @@ -450,8 +449,8 @@ ClangTidyASTConsumerFactory::CreateASTConsumer(
std::vector<std::string> ClangTidyASTConsumerFactory::getCheckNames() {
std::vector<std::string> CheckNames;
for (const auto &CheckFactory : *CheckFactories) {
if (Context.isCheckEnabled(CheckFactory.first))
CheckNames.push_back(CheckFactory.first);
if (Context.isCheckEnabled(CheckFactory.getKey()))
CheckNames.emplace_back(CheckFactory.getKey());
}

#if CLANG_ENABLE_STATIC_ANALYZER
Expand Down
36 changes: 21 additions & 15 deletions clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ llvm::Expected<std::string>
ClangTidyCheck::OptionsView::get(StringRef LocalName) const {
const auto &Iter = CheckOptions.find(NamePrefix + LocalName.str());
if (Iter != CheckOptions.end())
return Iter->second.Value;
return Iter->getValue().Value;
return llvm::make_error<MissingOptionError>((NamePrefix + LocalName).str());
}

Expand All @@ -85,7 +85,7 @@ findPriorityOption(const ClangTidyOptions::OptionMap &Options, StringRef NamePre
return IterGlobal;
if (IterGlobal == Options.end())
return IterLocal;
if (IterLocal->second.Priority >= IterGlobal->second.Priority)
if (IterLocal->getValue().Priority >= IterGlobal->getValue().Priority)
return IterLocal;
return IterGlobal;
}
Expand All @@ -94,7 +94,7 @@ llvm::Expected<std::string>
ClangTidyCheck::OptionsView::getLocalOrGlobal(StringRef LocalName) const {
auto Iter = findPriorityOption(CheckOptions, NamePrefix, LocalName);
if (Iter != CheckOptions.end())
return Iter->second.Value;
return Iter->getValue().Value;
return llvm::make_error<MissingOptionError>((NamePrefix + LocalName).str());
}

Expand Down Expand Up @@ -135,7 +135,7 @@ llvm::Expected<bool>
ClangTidyCheck::OptionsView::getLocalOrGlobal<bool>(StringRef LocalName) const {
auto Iter = findPriorityOption(CheckOptions, NamePrefix, LocalName);
if (Iter != CheckOptions.end())
return getAsBool(Iter->second.Value, Iter->first);
return getAsBool(Iter->getValue().Value, Iter->getKey());
return llvm::make_error<MissingOptionError>((NamePrefix + LocalName).str());
}

Expand All @@ -155,23 +155,29 @@ void ClangTidyCheck::OptionsView::store(ClangTidyOptions::OptionMap &Options,
Options[NamePrefix + LocalName.str()] = Value;
}

void ClangTidyCheck::OptionsView::store(ClangTidyOptions::OptionMap &Options,
StringRef LocalName,
int64_t Value) const {
void ClangTidyCheck::OptionsView::storeInt(ClangTidyOptions::OptionMap &Options,
StringRef LocalName,
int64_t Value) const {
store(Options, LocalName, llvm::itostr(Value));
}

llvm::Expected<int64_t>
ClangTidyCheck::OptionsView::getEnumInt(StringRef LocalName,
ArrayRef<NameAndValue> Mapping,
bool CheckGlobal, bool IgnoreCase) {
template <>
void ClangTidyCheck::OptionsView::store<bool>(
ClangTidyOptions::OptionMap &Options, StringRef LocalName,
bool Value) const {
store(Options, LocalName, Value ? StringRef("true") : StringRef("false"));
}

llvm::Expected<int64_t> ClangTidyCheck::OptionsView::getEnumInt(
StringRef LocalName, ArrayRef<NameAndValue> Mapping, bool CheckGlobal,
bool IgnoreCase) const {
auto Iter = CheckGlobal
? findPriorityOption(CheckOptions, NamePrefix, LocalName)
: CheckOptions.find((NamePrefix + LocalName).str());
if (Iter == CheckOptions.end())
return llvm::make_error<MissingOptionError>((NamePrefix + LocalName).str());

StringRef Value = Iter->second.Value;
StringRef Value = Iter->getValue().Value;
StringRef Closest;
unsigned EditDistance = -1;
for (const auto &NameAndEnum : Mapping) {
Expand All @@ -193,9 +199,9 @@ ClangTidyCheck::OptionsView::getEnumInt(StringRef LocalName,
}
if (EditDistance < 3)
return llvm::make_error<UnparseableEnumOptionError>(
Iter->first, Iter->second.Value, std::string(Closest));
return llvm::make_error<UnparseableEnumOptionError>(Iter->first,
Iter->second.Value);
Iter->getKey().str(), Iter->getValue().Value, Closest.str());
return llvm::make_error<UnparseableEnumOptionError>(Iter->getKey().str(),
Iter->getValue().Value);
}

void ClangTidyCheck::OptionsView::logErrToStdErr(llvm::Error &&Err) {
Expand Down
37 changes: 26 additions & 11 deletions clang-tools-extra/clang-tidy/ClangTidyCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// supply the mapping required to convert between ``T`` and a string.
template <typename T>
std::enable_if_t<std::is_enum<T>::value, llvm::Expected<T>>
get(StringRef LocalName, bool IgnoreCase = false) {
get(StringRef LocalName, bool IgnoreCase = false) const {
if (llvm::Expected<int64_t> ValueOr =
getEnumInt(LocalName, typeEraseMapping<T>(), false, IgnoreCase))
return static_cast<T>(*ValueOr);
Expand All @@ -349,7 +349,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// supply the mapping required to convert between ``T`` and a string.
template <typename T>
std::enable_if_t<std::is_enum<T>::value, T>
get(StringRef LocalName, T Default, bool IgnoreCase = false) {
get(StringRef LocalName, T Default, bool IgnoreCase = false) const {
if (auto ValueOr = get<T>(LocalName, IgnoreCase))
return *ValueOr;
else
Expand All @@ -370,8 +370,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// supply the mapping required to convert between ``T`` and a string.
template <typename T>
std::enable_if_t<std::is_enum<T>::value, llvm::Expected<T>>
getLocalOrGlobal(StringRef LocalName,
bool IgnoreCase = false) {
getLocalOrGlobal(StringRef LocalName, bool IgnoreCase = false) const {
if (llvm::Expected<int64_t> ValueOr =
getEnumInt(LocalName, typeEraseMapping<T>(), true, IgnoreCase))
return static_cast<T>(*ValueOr);
Expand All @@ -391,7 +390,8 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// supply the mapping required to convert between ``T`` and a string.
template <typename T>
std::enable_if_t<std::is_enum<T>::value, T>
getLocalOrGlobal(StringRef LocalName, T Default, bool IgnoreCase = false) {
getLocalOrGlobal(StringRef LocalName, T Default,
bool IgnoreCase = false) const {
if (auto ValueOr = getLocalOrGlobal<T>(LocalName, IgnoreCase))
return *ValueOr;
else
Expand All @@ -405,9 +405,13 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
StringRef Value) const;

/// Stores an option with the check-local name \p LocalName with
/// ``int64_t`` value \p Value to \p Options.
void store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
int64_t Value) const;
/// integer value \p Value to \p Options.
template <typename T>
std::enable_if_t<std::is_integral<T>::value>
store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
T Value) const {
storeInt(Options, LocalName, Value);
}

/// Stores an option with the check-local name \p LocalName as the string
/// representation of the Enum \p Value to \p Options.
Expand All @@ -416,7 +420,8 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// supply the mapping required to convert between ``T`` and a string.
template <typename T>
std::enable_if_t<std::is_enum<T>::value>
store(ClangTidyOptions::OptionMap &Options, StringRef LocalName, T Value) {
store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
T Value) const {
ArrayRef<std::pair<T, StringRef>> Mapping =
OptionEnumMapping<T>::getEnumMapping();
auto Iter = llvm::find_if(
Expand All @@ -432,11 +437,11 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {

llvm::Expected<int64_t> getEnumInt(StringRef LocalName,
ArrayRef<NameAndValue> Mapping,
bool CheckGlobal, bool IgnoreCase);
bool CheckGlobal, bool IgnoreCase) const;

template <typename T>
std::enable_if_t<std::is_enum<T>::value, std::vector<NameAndValue>>
typeEraseMapping() {
typeEraseMapping() const {
ArrayRef<std::pair<T, StringRef>> Mapping =
OptionEnumMapping<T>::getEnumMapping();
std::vector<NameAndValue> Result;
Expand All @@ -448,6 +453,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
return Result;
}

void storeInt(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
int64_t Value) const;

static void logErrToStdErr(llvm::Error &&Err);

std::string NamePrefix;
Expand Down Expand Up @@ -509,6 +517,13 @@ template <>
bool ClangTidyCheck::OptionsView::getLocalOrGlobal<bool>(StringRef LocalName,
bool Default) const;

/// Stores an option with the check-local name \p LocalName with
/// bool value \p Value to \p Options.
template <>
void ClangTidyCheck::OptionsView::store<bool>(
ClangTidyOptions::OptionMap &Options, StringRef LocalName,
bool Value) const;

} // namespace tidy
} // namespace clang

Expand Down
51 changes: 33 additions & 18 deletions clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Regex.h"
#include <tuple>
Expand Down Expand Up @@ -590,6 +591,7 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors() {
// An event can be either the begin or the end of an interval.
enum EventType {
ET_Begin = 1,
ET_Insert = 0,
ET_End = -1,
};

Expand Down Expand Up @@ -621,10 +623,17 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors() {
// one will be processed before, disallowing the second one, and the
// end point of the first one will also be processed before,
// disallowing the first one.
if (Type == ET_Begin)
switch (Type) {
case ET_Begin:
Priority = std::make_tuple(Begin, Type, -End, -ErrorSize, ErrorId);
else
break;
case ET_Insert:
Priority = std::make_tuple(Begin, Type, -End, ErrorSize, ErrorId);
break;
case ET_End:
Priority = std::make_tuple(End, Type, -Begin, ErrorSize, ErrorId);
break;
}
}

bool operator<(const Event &Other) const {
Expand Down Expand Up @@ -662,19 +671,19 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors() {
}

// Build events from error intervals.
std::map<std::string, std::vector<Event>> FileEvents;
llvm::StringMap<std::vector<Event>> FileEvents;
for (unsigned I = 0; I < ErrorFixes.size(); ++I) {
for (const auto &FileAndReplace : *ErrorFixes[I].second) {
for (const auto &Replace : FileAndReplace.second) {
unsigned Begin = Replace.getOffset();
unsigned End = Begin + Replace.getLength();
const std::string &FilePath = std::string(Replace.getFilePath());
// FIXME: Handle empty intervals, such as those from insertions.
if (Begin == End)
continue;
auto &Events = FileEvents[FilePath];
Events.emplace_back(Begin, End, Event::ET_Begin, I, Sizes[I]);
Events.emplace_back(Begin, End, Event::ET_End, I, Sizes[I]);
auto &Events = FileEvents[Replace.getFilePath()];
if (Begin == End) {
Events.emplace_back(Begin, End, Event::ET_Insert, I, Sizes[I]);
} else {
Events.emplace_back(Begin, End, Event::ET_Begin, I, Sizes[I]);
Events.emplace_back(Begin, End, Event::ET_End, I, Sizes[I]);
}
}
}
}
Expand All @@ -686,14 +695,20 @@ void ClangTidyDiagnosticConsumer::removeIncompatibleErrors() {
llvm::sort(Events);
int OpenIntervals = 0;
for (const auto &Event : Events) {
if (Event.Type == Event::ET_End)
--OpenIntervals;
// This has to be checked after removing the interval from the count if it
// is an end event, or before adding it if it is a begin event.
if (OpenIntervals != 0)
Apply[Event.ErrorId] = false;
if (Event.Type == Event::ET_Begin)
++OpenIntervals;
switch (Event.Type) {
case Event::ET_Begin:
if (OpenIntervals++ != 0)
Apply[Event.ErrorId] = false;
break;
case Event::ET_Insert:
if (OpenIntervals != 0)
Apply[Event.ErrorId] = false;
break;
case Event::ET_End:
if (--OpenIntervals != 0)
Apply[Event.ErrorId] = false;
break;
}
}
assert(OpenIntervals == 0 && "Amount of begin/end points doesn't match");
}
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/ClangTidyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ namespace tidy {

void ClangTidyCheckFactories::registerCheckFactory(StringRef Name,
CheckFactory Factory) {
Factories[std::string(Name)] = std::move(Factory);
Factories.insert_or_assign(Name, std::move(Factory));
}

std::vector<std::unique_ptr<ClangTidyCheck>>
ClangTidyCheckFactories::createChecks(ClangTidyContext *Context) {
std::vector<std::unique_ptr<ClangTidyCheck>> Checks;
for (const auto &Factory : Factories) {
if (Context->isCheckEnabled(Factory.first))
Checks.emplace_back(Factory.second(Factory.first, Context));
if (Context->isCheckEnabled(Factory.getKey()))
Checks.emplace_back(Factory.getValue()(Factory.getKey(), Context));
}
return Checks;
}
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/ClangTidyModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ClangTidyCheckFactories {
std::vector<std::unique_ptr<ClangTidyCheck>>
createChecks(ClangTidyContext *Context);

typedef std::map<std::string, CheckFactory> FactoryMap;
typedef llvm::StringMap<CheckFactory> FactoryMap;
FactoryMap::const_iterator begin() const { return Factories.begin(); }
FactoryMap::const_iterator end() const { return Factories.end(); }
bool empty() const { return Factories.empty(); }
Expand Down
12 changes: 6 additions & 6 deletions clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct NOptionMap {
NOptionMap(IO &, const ClangTidyOptions::OptionMap &OptionMap) {
Options.reserve(OptionMap.size());
for (const auto &KeyValue : OptionMap)
Options.emplace_back(KeyValue.first, KeyValue.second.Value);
Options.emplace_back(KeyValue.getKey(), KeyValue.getValue().Value);
}
ClangTidyOptions::OptionMap denormalize(IO &) {
ClangTidyOptions::OptionMap Map;
Expand Down Expand Up @@ -114,11 +114,9 @@ ClangTidyOptions ClangTidyOptions::getDefaults() {
Options.SystemHeaders = false;
Options.FormatStyle = "none";
Options.User = llvm::None;
unsigned Priority = 0;
for (const ClangTidyModuleRegistry::entry &Module :
ClangTidyModuleRegistry::entries())
Options =
Options.mergeWith(Module.instantiate()->getModuleOptions(), ++Priority);
Options = Options.mergeWith(Module.instantiate()->getModuleOptions(), 0);
return Options;
}

Expand Down Expand Up @@ -159,8 +157,10 @@ ClangTidyOptions ClangTidyOptions::mergeWith(const ClangTidyOptions &Other,
mergeVectors(Result.ExtraArgsBefore, Other.ExtraArgsBefore);

for (const auto &KeyValue : Other.CheckOptions) {
Result.CheckOptions[KeyValue.first] = ClangTidyValue(
KeyValue.second.Value, KeyValue.second.Priority + Priority);
Result.CheckOptions.insert_or_assign(
KeyValue.getKey(),
ClangTidyValue(KeyValue.getValue().Value,
KeyValue.getValue().Priority + Priority));
}

return Result;
Expand Down
Loading