-
Notifications
You must be signed in to change notification settings - Fork 72
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
Clang 11 upgrade #984
Clang 11 upgrade #984
Commits on Jul 14, 2020
-
[DWARFYAML] Replace Is64bit with Is64BitAddrSize. NFC.
Is64bit is ambiguous. In this patch, we replace it with Is64BitAddrSize to make it clearer.
Configuration menu - View commit details
-
Copy full SHA for 830a7c2 - Browse repository at this point
Copy the full SHA 830a7c2View commit details -
[AArch64][GlobalISel] Add post-legalize combine for sext_inreg(trunc(…
…sextload)) -> copy On AArch64 we generate redundant G_SEXTs or G_SEXT_INREGs because of this. Differential Revision: https://reviews.llvm.org/D81993
Configuration menu - View commit details
-
Copy full SHA for 64eb3a4 - Browse repository at this point
Copy the full SHA 64eb3a4View commit details -
[PowerPC][Power10] Implement Test LSB by Byte Builtins in LLVM/Clang
This patch implements builtins for the Test LSB by Byte instruction introduced in Power10. Differential Revision: https://reviews.llvm.org/D82431
Configuration menu - View commit details
-
Copy full SHA for 62f5ba6 - Browse repository at this point
Copy the full SHA 62f5ba6View commit details -
[AMDGPU] Propagate dead flag during pre-RA exec mask optimizations
Preserve SCC dead flags in SIOptimizeExecMaskingPreRA. This helps with removing redundant s_andn2 instructions later. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D83637
Configuration menu - View commit details
-
Copy full SHA for 74c1420 - Browse repository at this point
Copy the full SHA 74c1420View commit details -
[deadargelim] Attach dbg info to the insert/extractvalue instructions
Attach DbgLoc on insertvalue/extractvalue instructions created by DeadArgumentElimination. This fixes the PR46350. Differential Revision: https://reviews.llvm.org/D81939
Configuration menu - View commit details
-
Copy full SHA for 1af8c93 - Browse repository at this point
Copy the full SHA 1af8c93View commit details -
[AMDGPU][NFC] Tidy sgpr-control-flow.ll whitespace
Pre-commit clean up for D83641.
Configuration menu - View commit details
-
Copy full SHA for e5f022c - Browse repository at this point
Copy the full SHA e5f022cView commit details -
[SVE][CodeGen] Fix implicit TypeSize->uint64_t conversion in Transfor…
…mFPLoadStorePair In DAGCombiner::TransformFPLoadStorePair we were dropping the scalable property of TypeSize when trying to create an integer type of equivalent size. In fact, this optimisation makes no sense for scalable types since we don't know the size at compile time. I have changed the code to bail out when encountering scalable type sizes. I've added a test to llvm/test/CodeGen/AArch64/sve-fp.ll that exercises this code path. The test already emits an error if it encounters warnings due to implicit TypeSize->uint64_t conversions. Differential Revision: https://reviews.llvm.org/D83572
Configuration menu - View commit details
-
Copy full SHA for 3b8eaf2 - Browse repository at this point
Copy the full SHA 3b8eaf2View commit details -
[SVE] Fix implicit TypeSize->uint64_t conversion getCastInstrCost
In getCastInstrCost() when comparing different sizes for src and dst types we should be using the TypeSize comparison operators instead of relying upon TypeSize being converted a uin64_t. Previously this meant we were dropping the scalable property and treating fixed and scalable vector types the same. Differential Revision: https://reviews.llvm.org/D83461
Configuration menu - View commit details
-
Copy full SHA for c06b7e2 - Browse repository at this point
Copy the full SHA c06b7e2View commit details -
[clangd] Implement textDocument/foldingRange
Summary: This patch introduces basic textDocument/foldingRange support. It relies on textDocument/documentSymbols to collect all symbols and uses takes ranges to create folds. The next steps for textDocument/foldingRange support would be: * Implementing FoldingRangeClientCapabilities and respecting respect client preferences * Specifying folding range kind * Migrating from DocumentSymbol implementation to custom RecursiveASTVisitor flow that will allow more flexibility * Supporting more folding range types: comments, PP conditional regions, includes and other code regions (e.g. public/private/protected sections of classes, control flow statement bodies) Tested: (Neo)Vim (coc-clangd) and VSCode. Related issue: clangd/clangd#310 Reviewers: sammccall Reviewed By: sammccall Subscribers: nridge, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82436
Configuration menu - View commit details
-
Copy full SHA for 7a514c9 - Browse repository at this point
Copy the full SHA 7a514c9View commit details -
[SVE][CodeGen] Add README for SVE-related warnings in tests
I have added a new file: llvm/test/CodeGen/AArch64/README that describes what to do in the event one of the SVE codegen tests fails the warnings check. In addition, I've added comments to all the relevant SVE tests pointing users at the README file. Differential Revision: https://reviews.llvm.org/D83467
Configuration menu - View commit details
-
Copy full SHA for 02650ac - Browse repository at this point
Copy the full SHA 02650acView commit details -
[NFCI][InstCombine] Move store merging from
visitStoreInst()
into `……visitUnconditionalBranchInst()` Summary: As @nikic is pointing out in https://bugs.llvm.org/show_bug.cgi?id=46680#c5, InstCombine should not have forward instruction scans, so let's move this transform into the proper place. This is pretty much NFCI. Reviewers: nikic, spatel Reviewed By: nikic Subscribers: hiraditya, llvm-commits, nikic Tags: #llvm Differential Revision: https://reviews.llvm.org/D83670
Configuration menu - View commit details
-
Copy full SHA for e2b75ca - Browse repository at this point
Copy the full SHA e2b75caView commit details -
Double check that passes correctly set their Modified status
The approach is simple: if a pass reports that it's not modifying a Function/Module, compute a loose hash of that Function/Module and compare it with the original one. If we report no change but there's a hash change, then we have an error. This approach misses a lot of change but it's not super intrusive and can detect most of the simple mistakes. Differential Revision: https://reviews.llvm.org/D80916
serge-sans-paille committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 3667d87 - Browse repository at this point
Copy the full SHA 3667d87View commit details -
[AMDGPU] Avoid using s_cmpk when src0 is not register
The hardware spec require src0 of s_cmpk should be a register. So, we should not optimize s_cmp to s_cmpk if src0 is not register. Patch by Ruiling Song!
Configuration menu - View commit details
-
Copy full SHA for 1658b8d - Browse repository at this point
Copy the full SHA 1658b8dView commit details -
Revert "[compiler-rt] [test] Allow expanding lit substitutions recurs…
…ively" This reverts commit 8372d50. It broke the TestCases/Darwin/asan-symbolize-partial-report-with-module-map.cpp test on green dragon.
Configuration menu - View commit details
-
Copy full SHA for eafeb8a - Browse repository at this point
Copy the full SHA eafeb8aView commit details -
[AArch64][SVE] Remove erroneous assert in resolveFrameOffsetReference
The code already supports addressing a fixed-size stack object from the frame-pointer, by first subtracting sizeof(SVE area) from FP. Reviewers: efriedma, cameron.mcinally, david-arm, rengolin Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D83125
Configuration menu - View commit details
-
Copy full SHA for a8f4f85 - Browse repository at this point
Copy the full SHA a8f4f85View commit details -
Revert "Revert "[compiler-rt] [test] Use the parent process env as ba…
…se env in tests"" This reverts commit 979c502. The underlying issue has been fixed in https://reviews.llvm.org/D83719.
Configuration menu - View commit details
-
Copy full SHA for faa7e30 - Browse repository at this point
Copy the full SHA faa7e30View commit details -
[analyzer][tests] Introduce analyzer benchmarking framework
Summary: This commit includes a couple of changes: * Benchmark selected projects by analyzing them multiple times * Compare two benchmarking results and visualizing them on one chart * Organize project build logging, so we can use the same code in benchmarks Differential Revision: https://reviews.llvm.org/D83539
Configuration menu - View commit details
-
Copy full SHA for 5b4f143 - Browse repository at this point
Copy the full SHA 5b4f143View commit details -
[analyzer][tests] Add 5 more projects for testing
Differential Revision: https://reviews.llvm.org/D83701
Configuration menu - View commit details
-
Copy full SHA for 089a0ad - Browse repository at this point
Copy the full SHA 089a0adView commit details -
[ARM][MVE] Only tail-fold integer add reductions
If a vector body has live-out values, it is probably a reduction, which needs a final reduction step after the loop. MVE has a VADDV instruction to reduce integer vectors, but doesn't have an equivalent one for float vectors. A live-out value that is not recognised as reduction later in the optimisation pipeline will result in the tail-predicated loop to be reverted to a non-predicated loop and this is very expensive, i.e. it has a significant performance impact, which is what we hope to avoid with fine tuning the ARM TTI hook preferPredicateOverEpilogue implementation. Differential Revision: https://reviews.llvm.org/D82953
Sjoerd Meijer committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 959eaa5 - Browse repository at this point
Copy the full SHA 959eaa5View commit details -
[AMDGPU] Fix typos in performCtlz_CttzCombine()
Fix two obvious errors in the code and also update the test check. Also add one test to catch the failure. Patch by Ruiling Song! Differential Revision: https://reviews.llvm.org/D83280
Configuration menu - View commit details
-
Copy full SHA for 5ab2e14 - Browse repository at this point
Copy the full SHA 5ab2e14View commit details -
[DebugInfo] Add unit test for compact expression printer
Add a unit test for the compact DWARF expression printer which will be used by the llvm-objdump --debug-vars option. Differential revision: https://reviews.llvm.org/D75250
Configuration menu - View commit details
-
Copy full SHA for c15e04e - Browse repository at this point
Copy the full SHA c15e04eView commit details -
[llvm-objdump] Add simple memory expressions to variable display
Add the DW_OP_breg0..DW_OP_breg31 and DW_OP_bregx opcodes to the DWARF expression printer. Differential revision: https://reviews.llvm.org/D74841
Configuration menu - View commit details
-
Copy full SHA for 1d7311e - Browse repository at this point
Copy the full SHA 1d7311eView commit details -
[llvm-objdump] Add entry_value and stack_value opcodes
Add the DW_OP_entry_value and DW_OP_stack_value opcodes to the DWARF expression printer. Differential revision: https://reviews.llvm.org/D74843
Configuration menu - View commit details
-
Copy full SHA for 57909b0 - Browse repository at this point
Copy the full SHA 57909b0View commit details -
[llvm][unittests] Fix ProgramEnvTest.TestExecuteAndWaitStatistics on …
…Solaris The new `LLVM-Unit :: Support/./SupportTests/ProgramEnvTest.TestExecuteAndWaitStatistics` test currently FAILs on Solaris: [ RUN ] ProgramEnvTest.TestExecuteAndWaitStatistics /vol/llvm/src/llvm-project/local/llvm/unittests/Support/ProgramTest.cpp:360: Failure Expected: (ProcStat->PeakMemory) > (0U), actual: 0 vs 0 [ FAILED ] ProgramEnvTest.TestExecuteAndWaitStatistics (22 ms) According to `llvm/lib/Support/Unix/Program.inc (llvm::sys::Wait)`, `PeakMemory` corresponds to `struct rusage.ru_maxrss`. However, Solaris `getrusage(3C)` documents NOTES The ru_maxrss, ru_ixrss, ru_idrss, and ru_isrss members of the rusage structure are set to 0 in this implementation. Since changing the test to check for `PeakMemory >= 0` instead is pointless and would generate a warning on targets where `ru_maxrss` is unsigned, this patch removes the check. Tested on `amd64-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D83661
Configuration menu - View commit details
-
Copy full SHA for 2d1fe0c - Browse repository at this point
Copy the full SHA 2d1fe0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 242a736 - Browse repository at this point
Copy the full SHA 242a736View commit details -
[ELF] Do not leave undefined symbols (specified by -init and -fini) i…
…f they are defined in non-fetched archive members After D69985, symbols for "-init" and "-fini" were unconditionally marked as used even if they were just lazy symbols seen when scanning archives. That resulted in exposing them in the symbol table of an output file, as Undefined, which added unwanted dependencies. The patch fixes the issue by checking the kind of the symbols before the marking. Differential Revision: https://reviews.llvm.org/D83549
Configuration menu - View commit details
-
Copy full SHA for c4fc26b - Browse repository at this point
Copy the full SHA c4fc26bView commit details -
[DebugInfo] Add unit tests for DWARFListTableHeader::length().
This adds unit tests to check the expected behavior of the method in case the unit length field is truncated. Differential Revision: https://reviews.llvm.org/D83673
Configuration menu - View commit details
-
Copy full SHA for dd6faf1 - Browse repository at this point
Copy the full SHA dd6faf1View commit details -
[DebugInfo] Fix a possible crash when reading a malformed .debug_*lis…
…ts section. DWARFListTableHeader::length() handles the zero value of HeaderData.Length in a special way, which makes the result different from the calculated value of FullLength, which leads to triggering an assertion. The patch moves the assertion a bit later when `FullLength` is already checked for minimal allowed value. Differential Revision: https://reviews.llvm.org/D82886
Configuration menu - View commit details
-
Copy full SHA for ec9f0c7 - Browse repository at this point
Copy the full SHA ec9f0c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae9f5d - Browse repository at this point
Copy the full SHA 3ae9f5dView commit details -
[AArch64][AsmParser] Add rcpc support in .arch_extension
AArch64 does not support enabling rcpc via .arch_extension in assembly. GCC, on the other hand, does. This patch adds 'rcpc' as a valid value to .arch_extension handling. Differential Revision: https://reviews.llvm.org/D83685
Configuration menu - View commit details
-
Copy full SHA for dad1868 - Browse repository at this point
Copy the full SHA dad1868View commit details -
[MLIR][Standard] Add
assert
operation to the standard dialectDifferential Revision: https://reviews.llvm.org/D83117
Configuration menu - View commit details
-
Copy full SHA for bcedc4f - Browse repository at this point
Copy the full SHA bcedc4fView commit details -
[MLIR][Standard] Erase redundant assertions
std.assert
Differential Revision: https://reviews.llvm.org/D83118
Configuration menu - View commit details
-
Copy full SHA for 1ee0d22 - Browse repository at this point
Copy the full SHA 1ee0d22View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5405a2 - Browse repository at this point
Copy the full SHA a5405a2View commit details -
Revert "[RISCV] Avoid Splitting MBB in RISCVExpandPseudo"
This reverts commit 97106f9. This is based on feedback from https://reviews.llvm.org/D82988#2147105
Configuration menu - View commit details
-
Copy full SHA for 1d15bbb - Browse repository at this point
Copy the full SHA 1d15bbbView commit details -
[yaml2obj] - Add a syntax to override e_phoff, e_phentsize and e_phnu…
…m fields. This adds `EPhOff`, `EPhEntSize` and `EPhNum` keys. Will be useful for creating broken objects for testing llvm-readelf. Differential revision: https://reviews.llvm.org/D83482
Georgii Rymar committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 3001569 - Browse repository at this point
Copy the full SHA 3001569View commit details -
[compiler-rt][sanitizers] Fix GetPcSpBp determination of SP on 32-bit…
… Solaris/x86 A dozen 32-bit `AddressSanitizer` testcases FAIL on the latest beta of Solaris 11.4/x86, e.g. `AddressSanitizer-i386-sunos :: TestCases/null_deref.cpp` produces AddressSanitizer:DEADLYSIGNAL ================================================================= ==29274==ERROR: AddressSanitizer: stack-overflow on address 0x00000028 (pc 0x08135efd bp 0xfeffdfd8 sp 0x00000000 T0) #0 0x8135efd in NullDeref(int*) /vol/llvm/src/llvm-project/dist/compiler-rt/test/asan/TestCases/null_deref.cpp:15:10 #1 0x8135ea6 in main /vol/llvm/src/llvm-project/dist/compiler-rt/test/asan/TestCases/null_deref.cpp:21:3 #2 0x8084b85 in _start (null_deref.cpp.tmp+0x8084b85) SUMMARY: AddressSanitizer: stack-overflow /vol/llvm/src/llvm-project/dist/compiler-rt/test/asan/TestCases/null_deref.cpp:15:10 in NullDeref(int*) ==29274==ABORTING instead of the expected AddressSanitizer:DEADLYSIGNAL ================================================================= ==29276==ERROR: AddressSanitizer: SEGV on unknown address 0x00000028 (pc 0x08135f1f bp 0xfeffdf48 sp 0xfeffdf40 T0) ==29276==The signal is caused by a WRITE memory access. ==29276==Hint: address points to the zero page. #0 0x8135f1f in NullDeref(int*) /vol/llvm/src/llvm-project/local/compiler-rt/test/asan/TestCases/null_deref.cpp:15:10 #1 0x8135efa in main /vol/llvm/src/llvm-project/local/compiler-rt/test/asan/TestCases/null_deref.cpp:21:3 #2 0x8084be5 in _start (null_deref.cpp.tmp+0x8084be5) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /vol/llvm/src/llvm-project/local/compiler-rt/test/asan/TestCases/null_deref.cpp:15:10 in NullDeref(int*) ==29276==ABORTING I managed to trace this to a change in `<sys/regset.h>`: previously the header would primarily define the short register indices (like `UESP`). While they are required by the i386 psABI, they are only required in `<ucontext.h>` and could previously leak into unsuspecting user code, polluting the namespace and requiring elaborate workarounds like that in `llvm/include/llvm/Support/Solaris/sys/regset.h`. The change fixed that by restricting the definition of the short forms appropriately, at the same time defining all `REG_` prefixed forms for compatiblity with other systems. This exposed a bug in `compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp`, however: Previously, the index for the user stack pointer would be hardcoded if `REG_ESP` wasn't defined. Now with that definition present, it turned out that `REG_ESP` was the wrong index to use: the previous value 17 (and `REG_SP`) corresponds to `REG_UESP` instead. With that change, the failures are all gone. Tested on `amd-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D83664
Configuration menu - View commit details
-
Copy full SHA for f0e9b76 - Browse repository at this point
Copy the full SHA f0e9b76View commit details -
[DWARFYAML] Add support for emitting value forms of strx, addrx, etc.
This patch adds support for emitting value forms of DW_FORM_strx, DW_FORM_addrx, DW_FORM_loclistx and DW_FORM_rnglistx. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D83749
Configuration menu - View commit details
-
Copy full SHA for b539f01 - Browse repository at this point
Copy the full SHA b539f01View commit details -
[lldb/test] Avoid globbing in log file handling code
The glob expression for a test called "test" could match a log file for a the test "test_foo". Instead of globbing, maintain an explicit list of log files relevant to the current test.
Configuration menu - View commit details
-
Copy full SHA for 3cdbacc - Browse repository at this point
Copy the full SHA 3cdbaccView commit details -
[SelectionDAG] Prevent warnings when extracting fixed length vector f…
…rom scalable. ComputeNumSignBits and computeKnownBits both trigger "Scalable flag may be dropped" warnings when a fixed length vector is extracted from a scalable vector. This patch assumes nothing about the demanded elements thus matching the behaviour when extracting a scalable vector from a scalable vector. Differential Revision: https://reviews.llvm.org/D83642
Configuration menu - View commit details
-
Copy full SHA for 6e198aa - Browse repository at this point
Copy the full SHA 6e198aaView commit details -
[llvm-readobj] - Stop using unwrapOrError() for all program_headers()…
… calls. program_headers() returns the list of program headers. This change allows to continue attempt of dumping when something is wrong with program headers. Differential revision: https://reviews.llvm.org/D83554
Georgii Rymar committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 7ef1763 - Browse repository at this point
Copy the full SHA 7ef1763View commit details -
[test/Object][llvm-objdump] - llvm-objdump: don't abort() when the e_…
…phoff field is invalid and refine testing. llvm-objdump currently calls report_fatal_error() when the e_phoff field is invalid. This is tested by elf-invalid-phdr.test which has the following issues: 1) It uses a precompiled object. 2) it could be a part of invalid.test. 3) It tests the Object lib, but we have no separate test for llvm-objdump. This patch addresses issues mentioned. Differential revision: https://reviews.llvm.org/D83559
Georgii Rymar committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 84a1bc7 - Browse repository at this point
Copy the full SHA 84a1bc7View commit details -
[InstCombine][InstSimplify] add tests for sign of maxnum; NFC
More coverage for D83601.
Configuration menu - View commit details
-
Copy full SHA for 9cc669d - Browse repository at this point
Copy the full SHA 9cc669dView commit details -
[ValueTracking] fix miscompile in maxnum case of cannotBeOrderedLessT…
…hanZeroImpl (PR46627) A miscompile with -0.0 is shown in: http://bugs.llvm.org/PR46627 This is because maxnum(-0.0, +0.0) does not specify a fixed result: http://llvm.org/docs/LangRef.html#llvm-maxnum-intrinsic So we need to tighten the constraints for when it is ok to say the result of maxnum is positive (including +0.0). Differential Revision: https://reviews.llvm.org/D83601
Configuration menu - View commit details
-
Copy full SHA for 34d35d4 - Browse repository at this point
Copy the full SHA 34d35d4View commit details -
[yaml2obj] - Refine handling of the NoHeaders key.
Imagine we have an YAML description for some object and we want to produce 2 outputs: with and without the section header. A natural way to do it would look like: ``` --- !ELF FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB Type: ET_REL Machine: EM_X86_64 Sections: ... SectionHeaderTable: NoHeaders: [[NOHEADERS]] ``` But currently, we do not distinguish between no `NoHeaders` key case and `NoHeaders == false`. Because of this we can't simply specify `NOHEADERS = false`, as tool starts to complain. With this patch the behavior changed. When we have: ``` SectionHeaderTable: NoHeaders: false ``` it is the same as we have no `SectionHeaderTable` at all. (`NoHeaders` key still can't be used with `Sections/Excluded` keys) Differential revision: https://reviews.llvm.org/D83672
Georgii Rymar committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 90e34b5 - Browse repository at this point
Copy the full SHA 90e34b5View commit details -
[lldb] Refactor character printing in DumpDataExtractor
Summary: Just unifying all that copy-pasted code. Reviewers: JDevlieghere Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D83662
Configuration menu - View commit details
-
Copy full SHA for 6f51cee - Browse repository at this point
Copy the full SHA 6f51ceeView commit details -
Revert "[SCEV][IndVarSimplify] insert point should not be block front."
This reverts commit f1efb8b. Reverted because it doesn't correctly update the pass return status, see http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-debian/builds/9441/steps/test-check-all/logs/FAIL%3A%20LLVM%3A%3Awiden-i32-i8ptr.ll
serge-sans-paille committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 1cd1c1d - Browse repository at this point
Copy the full SHA 1cd1c1dView commit details -
[flang][OpenMP] upstream OpenMP lowering
Summary: This patch implements lowering of OpenMP barrier construct from pft to OpenMPDialect. Patch is carved out of following merged PR's from fir-dev branch of https://github.com/flang-compiler/f18-llvm-project/ PR's: flang-compiler/f18-llvm-project#248 flang-compiler/f18-llvm-project#251 Unfortunately primary tool `bbc` for functional validation is not yet upstreamed. So this patch includes a unittest for lowering `!OMP barrier` construct. Some part of the these PR's still remains downstream(functional test and dialect registration to legalizer) for obvious reasons. Will upstream them when the dependencies are upstreamed. Reviewed By: schweitz, kiranchandramohan Differential Revision: https://reviews.llvm.org/D83659
Configuration menu - View commit details
-
Copy full SHA for 3d0b760 - Browse repository at this point
Copy the full SHA 3d0b760View commit details -
New test to show the changes after D81805 is committed. Differential Revision: https://reviews.llvm.org/D83750
Configuration menu - View commit details
-
Copy full SHA for c1d021e - Browse repository at this point
Copy the full SHA c1d021eView commit details -
[RISCV] Fix isStoreToStackSlot
Because of the layout of stores (that don't have a destination operand) this check is exactly the same as the one in RISCVInstrInfo::isLoadFromStackSlot. Differential Revision: https://reviews.llvm.org/D81805
Configuration menu - View commit details
-
Copy full SHA for 0cbdd2a - Browse repository at this point
Copy the full SHA 0cbdd2aView commit details -
Prohibit use of _ExtInt in atomic intrinsic
The _ExtInt type allows custom width integers, but the atomic memory access's operand must have a power-of-two size. _ExtInts with non-power-of-two size should not be allowed for atomic intrinsic. Before this change: $ cat test.c typedef unsigned _ExtInt(42) dtype; void verify_binary_op_nand(dtype* pval1, dtype val2) { __sync_nand_and_fetch(pval1, val2); } $ clang test.c clang-11: /home/ubuntu/llvm_workspace/llvm/clang/lib/CodeGen/CGBuiltin.cpp:117: llvm::Value* EmitToInt(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType, llvm::IntegerType*): Assertion `V->getType() == IntType' failed. PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. After this change: $ clang test.c test.c:3:30: error: Atomic memory operand must have a power-of-two size { __sync_nand_and_fetch(pval1, val2); } ^ List of the atomic intrinsics that have this problem: __sync_fetch_and_add __sync_fetch_and_sub __sync_fetch_and_or __sync_fetch_and_and __sync_fetch_and_xor __sync_fetch_and_nand __sync_nand_and_fetch __sync_and_and_fetch __sync_add_and_fetch __sync_sub_and_fetch __sync_or_and_fetch __sync_xor_and_fetch __sync_fetch_and_min __sync_fetch_and_max __sync_fetch_and_umin __sync_fetch_and_umax __sync_val_compare_and_swap __sync_bool_compare_and_swap Differential Revision: https://reviews.llvm.org/D83340
Configuration menu - View commit details
-
Copy full SHA for d083adb - Browse repository at this point
Copy the full SHA d083adbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a24208 - Browse repository at this point
Copy the full SHA 8a24208View commit details -
[clangd] Add library to semantically strip flags by name.
Summary: This is designed for tweaking compile commands by specifying flags to add/remove in a config file. Something like: CompileFlags: { Remove: -fcolor-diagnostics } Having users tweak raw argv (e.g. with a regex) is going to end in tears: bugs around clang-cl, xclang, aliases, joined-vs-separate args etc are inevitable. This isn't in tooling because of the performance choices: build a big table up-front to make subsequent actions fast. Maybe it should be though. Reviewers: adamcz, hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81958
Configuration menu - View commit details
-
Copy full SHA for 8eb8c92 - Browse repository at this point
Copy the full SHA 8eb8c92View commit details -
Fix test for the hasExternalFormalLinkage matcher
Summary: Names of local variables have no linkage (see C++20 [basic.link] p8). Names of variables in unnamed namespace have internal linkage (see C++20 [basic.link] p4). Reviewers: aaron.ballman, rsmith, ymandel Reviewed By: ymandel Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83700
Configuration menu - View commit details
-
Copy full SHA for 8978032 - Browse repository at this point
Copy the full SHA 8978032View commit details -
[ods] Enable getting forward decls allow
Summary: Currently forward decls are included with all the op classes. But there are cases (say when splitting up headers) where one wants the forward decls but not all the classes. Add an option to enable this. This does not change any current behavior (some further refactoring is probably due here). Differential Revision: https://reviews.llvm.org/D83727
Configuration menu - View commit details
-
Copy full SHA for 3ae43a5 - Browse repository at this point
Copy the full SHA 3ae43a5View commit details -
[libc++] Use a proper CMake target to represent libc++ headers
Instead of having complex logic around how to include the libc++ headers and __config_site, handle that by defining cxx-headers as an INTERFACE library and linking against it. After this patch, linking against cxx-headers is sufficient to get the right __config_site include and include paths for libc++. Differential Revision: https://reviews.llvm.org/D82702
Configuration menu - View commit details
-
Copy full SHA for efa40eb - Browse repository at this point
Copy the full SHA efa40ebView commit details -
[utils] New script
check_ninja_deps.py
Summary: This can be run after a ninja-based build, and analyzes the ninja build files and dependency database to spot any missing dependencies in the build scripts. I wrote it in the course of investigating D82659, and it seems likely to be useful again. Reviewers: thakis, chandlerc, theraven Reviewed By: thakis Subscribers: riccibruno, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83032
Configuration menu - View commit details
-
Copy full SHA for 86d362f - Browse repository at this point
Copy the full SHA 86d362fView commit details -
[clangd] Config: CompileFlags.Remove
Summary: While here, add documentation to CompileFlags and CompileFlags.Add. Reviewers: hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83705
Configuration menu - View commit details
-
Copy full SHA for 6c16fbd - Browse repository at this point
Copy the full SHA 6c16fbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9300de4 - Browse repository at this point
Copy the full SHA 9300de4View commit details -
[ValueTracking] fix library to intrinsic mapping to respect 'nobuilti…
…n' attribute This is another problem raised in: http://bugs.llvm.org/PR46627
Configuration menu - View commit details
-
Copy full SHA for e6c0164 - Browse repository at this point
Copy the full SHA e6c0164View commit details -
[clangd] Cache config files for 5 seconds, without revalidating with …
…stat. Summary: This is motivated by: - code completion: nice to do no i/o on the request path - background index: deciding whether to enqueue each file would stat the config file thousands of times in quick succession. Currently it's applied uniformly to all requests though. This gives up on performing stat() outside the lock, all this achieves is letting multiple threads stat concurrently (and thus finish without contention for nonexistent files). The ability to finish without IO (just mutex lock + integer check) should outweigh this, and is less sensitive to platform IO characteristics. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83755
Configuration menu - View commit details
-
Copy full SHA for ff616f7 - Browse repository at this point
Copy the full SHA ff616f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50a5fa8 - Browse repository at this point
Copy the full SHA 50a5fa8View commit details -
[lldb] Make
process connect
blocking in synchronous mode.In synchronous mode, the process connect command and its aliases should wait for the stop event before claiming the command is complete. Currently, the stop event is always handled asynchronously by the debugger. The implementation takes the same approach as Process::ResumeSynchronous which hijacks the event and handles it on the current thread. Similarly, after this patch, the stop event is part of the command return object, which is the property used by the test case. Differential revision: https://reviews.llvm.org/D83728
Configuration menu - View commit details
-
Copy full SHA for 706cccb - Browse repository at this point
Copy the full SHA 706cccbView commit details -
[lldb/Module] Allow for the creation of memory-only modules
Summary: This patch extends the ModuleSpec class to include a DataBufferSP which contains the module data. If this data is provided, LLDB won't try to hit the filesystem to create the Module, but use only the data stored in the ModuleSpec. Reviewers: labath, espindola Subscribers: emaste, MaskRay, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D83512
Configuration menu - View commit details
-
Copy full SHA for a4a00ce - Browse repository at this point
Copy the full SHA a4a00ceView commit details -
[libc++] Fix building the benchmarks after introducing a target for c…
…xx-headers The libc++ headers were included twice, which broke the #include_next logic.
Configuration menu - View commit details
-
Copy full SHA for e1ca7a6 - Browse repository at this point
Copy the full SHA e1ca7a6View commit details -
[clang][NFC] Add 'override' keyword to virtual function overrides
This patch adds override to several overriding virtual functions that were missing the keyword within the clang/ directory. These were found by the new -Wsuggest-override.
Configuration menu - View commit details
-
Copy full SHA for 2c2a297 - Browse repository at this point
Copy the full SHA 2c2a297View commit details -
[docs] Update llvm.loop metadata documentation.
Loop metadata nodes do not adhere to the documented property: (a) LoopIDs are not unique: Any pass that duplicates IR will do it including its metadata (e.g. LoopVersioning) such that multiple loops are linked with the same LoopID. There is even a test case (Transforms/LoopUnroll/unroll-pragmas-disabled.ll) for multiple loops with the same LoopID. (b) LoopIDs are not persistent: Adding or removing an item from a LoopID can only be done by creating a new MDNode and assigning it to the loop's branch(es). Passes such as LoopUnroll (llvm.loop.unroll.disable) and LoopVectorize (llvm.loop.isvectorized) use this to mark loops to not be transformed multiple times or to avoid that a LoopVersioned original loop is transformed. Update the documentation according to how llvm.loop is used in practice. Differential Revision: https://reviews.llvm.org/D55290
Configuration menu - View commit details
-
Copy full SHA for 322e7cf - Browse repository at this point
Copy the full SHA 322e7cfView commit details -
[MLIR] [TableGen] Avoid generating an assert which is always true.
- Avoid generating "assert(resultTypes.size() >= 0u)" which is always true Differential Revision: https://reviews.llvm.org/D83735
Configuration menu - View commit details
-
Copy full SHA for 256d448 - Browse repository at this point
Copy the full SHA 256d448View commit details -
[AIX] Remove diff -a option on llvm-cov.test
Summary: llvm-cov.test generates .gcov files and compared with target sample files. Since the files do not contain any binary data (files are plain ASCII texts), remove -a from diff. And this fix will the error on AIX since the default diff tool on AIX does not support -a option. Reviewers: hubert.reinterpretcast, daltenty, stevewan Subscribers: llvm-commits Tags: #LLVM Differential Revision: https://reviews.llvm.org/D83711
Configuration menu - View commit details
-
Copy full SHA for 85bed2f - Browse repository at this point
Copy the full SHA 85bed2fView commit details -
[MLIR] Add argument related API to Region
- Arguments of the first block of a region are considered region arguments. - Add API on Region class to deal with these arguments directly instead of using the front() block. - Changed several instances of existing code that can use this API - Fixes https://bugs.llvm.org/show_bug.cgi?id=46535 Differential Revision: https://reviews.llvm.org/D83599
Configuration menu - View commit details
-
Copy full SHA for e2b7161 - Browse repository at this point
Copy the full SHA e2b7161View commit details -
[clang] Add 'override' to virtual function overrides generated by Cla…
…ngAttrEmitter ClangAttrEmitter.cpp generates ParsedAttr derived classes with virtual overrides in them (which end up in AttrParsedAttrImpl.inc); this patch ensures these generated functions are marked override, and not (redundantly) virtual. I hesitate to say NFC since this does of course affect the behavior of the generator code, but the generated code behaves the same as it did before, so it's NFC in that sense. Differential Revision: https://reviews.llvm.org/D83616
Configuration menu - View commit details
-
Copy full SHA for fbb30c3 - Browse repository at this point
Copy the full SHA fbb30c3View commit details -
[NFC] Add 'override' keyword where missing in include/ and lib/.
This fixes warnings raised by Clang's new -Wsuggest-override, in preparation for enabling that warning in the LLVM build. This patch also removes the virtual keyword where redundant, but only in places where doing so improves consistency within a given file. It also removes a couple unnecessary virtual destructor declarations in derived classes where the destructor inherited from the base class is already virtual. Differential Revision: https://reviews.llvm.org/D83709
Configuration menu - View commit details
-
Copy full SHA for a19461d - Browse repository at this point
Copy the full SHA a19461dView commit details -
Fix merging of two arity-only pack deductions.
If we deduced the arity of a pack in two different ways, but didn't deduce an element of the pack in either of those deductions, we'd merge that element to produce a null template argument, which we'd incorrectly interpret as the merge having failed. Testcase based on one supplied by Hubert Tong.
Configuration menu - View commit details
-
Copy full SHA for bfd6433 - Browse repository at this point
Copy the full SHA bfd6433View commit details -
[clangd] Config: Index.Background
Summary: We only support Build/Skip for now, but with 'Load' or similar as an option for future (load existing shards but don't build new ones). This requires creating the config for each TU on startup. In LLVM, this is 4000 occurrences for a total of 800ms on my machine. But together with caching from D83755 it is only 25ms. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83768
Configuration menu - View commit details
-
Copy full SHA for dbf486c - Browse repository at this point
Copy the full SHA dbf486cView commit details -
[lldb/Test] Skip TestProcessConnect.py on Windows
Skip TestProcessConnect.py on Windows and Android (the same platforms as TestPlatformProcessConnect.py) and mark it as a NO_DEBUG_INFO test so we don't run all the variants.
Configuration menu - View commit details
-
Copy full SHA for f5f15ac - Browse repository at this point
Copy the full SHA f5f15acView commit details -
[flang] Turn off FLANG_ENABLE_WERROR by default
Summary: This is a follow up to https://reviews.llvm.org/D78306 Reviewers: DavidTruby, sscalpone, jdoerfert Reviewed By: DavidTruby Subscribers: tskeith, Meinersbur, ChinouneMehdi, richard.barton.arm, mehdi_amini, mgorny, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D81695
Configuration menu - View commit details
-
Copy full SHA for 9017b9c - Browse repository at this point
Copy the full SHA 9017b9cView commit details -
[lit] Prevent hang when lit sees non-ASCII characters
As per discussion in D69207, have lit ignore UnicodeDecodeErrors when running with python 2 in an ASCII shell. Differential Revision: https://reviews.llvm.org/D82754
Configuration menu - View commit details
-
Copy full SHA for f4476b7 - Browse repository at this point
Copy the full SHA f4476b7View commit details -
[lldb] lldbinline and lldbtest gardening (NFC)
- Make the open more Pythonic. - Remove the unused `cleanup` Make target. - Remove commented-out/obvious/low-value comments. - Cleanup the forked process PID list.
Configuration menu - View commit details
-
Copy full SHA for 9ecbad5 - Browse repository at this point
Copy the full SHA 9ecbad5View commit details -
[lldb] Use runBuildCommands from buildGModules
Use runBuildCommands, like all other builders, to raise a build-specific error when the command fails.
Configuration menu - View commit details
-
Copy full SHA for 5a62008 - Browse repository at this point
Copy the full SHA 5a62008View commit details -
[clang][aarch64] Generate preprocessor macros for -march=armv8.6a+sve.
Summary: The following preprocessor macros are implied when `-march=armv8.6a+sve`: ``` __ARM_FEATURE_SVE 1 __ARM_FEATURE_SVE_BF16 1 __ARM_FEATURE_SVE_MATMUL_FP32 1 __ARM_FEATURE_SVE_MATMUL_INT8 1 ``` Reviewers: sdesmalen, efriedma, SjoerdMeijer, rengolin Subscribers: tschuett, kristof.beyls, danielkiss, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83079
Francesco Petrogalli committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 438e95e - Browse repository at this point
Copy the full SHA 438e95eView commit details -
[ORC] Don't take ownership of the trampoline pool in LazyReexportsMan…
…ager. LazyReexportsManager instances use the trampoline pool, but they don't need to own it. Keeping TrampolinePool ownership separate allows re-use of the trampoline pool by other clients.
Configuration menu - View commit details
-
Copy full SHA for 3d931e8 - Browse repository at this point
Copy the full SHA 3d931e8View commit details -
Update ubsan_interface.inc for D71491 (second try)
I mistyped the ubsan objc_cast handler names on the first try. Testing: ./bin/llvm-lit projects/compiler-rt/test/asan/X86_64HDarwinConfig/TestCases/Darwin/interface_symbols_darwin.cpp
Configuration menu - View commit details
-
Copy full SHA for a8694eb - Browse repository at this point
Copy the full SHA a8694ebView commit details -
[MLIR] [NFC] Buffer placement pass - clang tidy warnings
Add missing const - addresses clang tidy warnings. Differential Revision: https://reviews.llvm.org/D83794
Configuration menu - View commit details
-
Copy full SHA for 9b974df - Browse repository at this point
Copy the full SHA 9b974dfView commit details -
[ObjC] Wrap namespace-global structs in an anonymous namespace to avo…
…id ODR violations <rdar://problem/65537147> Differential Revision: https://reviews.llvm.org/D83796
Davide Italiano committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 3f2d880 - Browse repository at this point
Copy the full SHA 3f2d880View commit details -
TableGen/GlobalISel: Partially fix nontrivial, custom predicates
Currently custom code predicates can only really be used for contextless checks tied to a single instruction (e.g. check the def for hasOneUse). If you do want to inspect the input instructions in the source pattern, you cannot without re-verifying the opcode and type checks implied by the patterns, since this check was emitted before any operand constraints. Really, these are pattern level predicates that implicitly depend on the instruction and operand checks. Introduce a filtering function so the custom predicate is emitted last. I'm not sure this is the most elegant solution. It seems like this is really a different thing from the InstructionMatcher/IPM_ predicate kinds. I initially tried keeping this in a separate predicate list, but that also seemed awkward. This only half fixes the problem I'm trying to solve. The AMDGPU pattern I'm attempting to port also uses the PredicateCodeUsesOperands feature to allow checks on the source operands when the input pattern is commuted. Really the emitter should reject the pattern since it doesn't handle this case, but at this point it would be more productive to just implement this.
Configuration menu - View commit details
-
Copy full SHA for 1254f6d - Browse repository at this point
Copy the full SHA 1254f6dView commit details -
[flang][openacc] OpenACC 3.0 parser
Summary: This patch introduce the parser for OpenACC 3.0 in Flang. It uses the same TableGen mechanism than OpenMP. Reviewers: nvdatian, sscalpone, tskeith, klausler, ichoyjx, jdoerfert, DavidTruby Reviewed By: klausler Subscribers: MaskRay, SouraVX, mgorny, hiraditya, jfb, sstefan1, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D83649
Configuration menu - View commit details
-
Copy full SHA for 0a90ffa - Browse repository at this point
Copy the full SHA 0a90ffaView commit details -
Desugar class type for iterator lookup.
Summary: Without this, printing sets and maps hidden behind using declarations fail. Reviewers: #libc! Subscribers: libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D83732
Configuration menu - View commit details
-
Copy full SHA for 77ee4b4 - Browse repository at this point
Copy the full SHA 77ee4b4View commit details -
[clangd] Make config::Provider::combine non-owning. NFC
This is a prerequisite for having ClangdLSPServer inject its own.
Configuration menu - View commit details
-
Copy full SHA for f88ce07 - Browse repository at this point
Copy the full SHA f88ce07View commit details -
[MLIR][StdToSPIRV] Fixed a typo in ops conversion tests
Fixed a typo in `std-ops-to-spitv.mlir` test. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D83791
Configuration menu - View commit details
-
Copy full SHA for be15284 - Browse repository at this point
Copy the full SHA be15284View commit details -
[Matrix] Intrinsic descriptions
This changes the matrix load/store intrinsic definitions to load/store from/to a pointer, and not from/to a pointer to a vector, as discussed in D83477. This also includes the recommit of "[Matrix] Tighten LangRef definitions and Verifier checks" which adds improved language reference descriptions of the matrix intrinsics and verifier checks. Differential Revision: https://reviews.llvm.org/D83785
Sjoerd Meijer committedJul 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 2b3c505 - Browse repository at this point
Copy the full SHA 2b3c505View commit details -
[flang] Change the default F18_FC to gfortran
Summary: Changed default F18_FC from pgf90 to gfortran. Removed unnecessary references to pgf90 in favor of more generic naming. Reviewers: sscalpone, richard.barton.arm, DavidTruby, jdoerfert, clementval Reviewed By: sscalpone, richard.barton.arm, clementval Subscribers: sstefan1, tskeith, klausler, clementval, flang-commits, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D83488
Configuration menu - View commit details
-
Copy full SHA for 02c3f70 - Browse repository at this point
Copy the full SHA 02c3f70View commit details -
Restore "[WPD/LowerTypeTests] Delay lowering/removal of type tests un…
…til after ICP" This restores commit 80d0a13, and the follow on fix in 873c0d0, with a new fix for test failures after a 2-stage clang bootstrap, and a more robust fix for the Chromium build failure that an earlier version partially fixed. See also discussion on D75201. Reviewers: evgeny777 Subscribers: mehdi_amini, Prazek, hiraditya, steven_wu, dexonsmith, arphaman, davidxl, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73242
Configuration menu - View commit details
-
Copy full SHA for 6014c46 - Browse repository at this point
Copy the full SHA 6014c46View commit details -
llvm-link: Add support for archive files as inputs
This patch adds support for archive files as inputs to llvm-link. One of the use-cases is for OpenMP, where device specific libraries need to be extracted from libraries containing bundled object files. The clang-offload-bundler will support extracting these archives, which will be passed into llvm-link, see https://reviews.llvm.org/D80816. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D81109
Configuration menu - View commit details
-
Copy full SHA for 66b4095 - Browse repository at this point
Copy the full SHA 66b4095View commit details -
Configuration menu - View commit details
-
Copy full SHA for 368eb77 - Browse repository at this point
Copy the full SHA 368eb77View commit details -
[clangd] Config: on by default
Summary: (Possible to flip back on the branch if this breaks things) Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83790
Configuration menu - View commit details
-
Copy full SHA for 00d97b7 - Browse repository at this point
Copy the full SHA 00d97b7View commit details -
[NFC] Add debug and stat counters to assume queries and assume builder
Summary: Add debug counter and stats counter to assume queries and assume builder here is the collected stats on a build of check-llvm + check-clang. "assume-builder.NumAssumeBuilt": 2720879, "assume-builder.NumAssumesMerged": 761396, "assume-builder.NumAssumesRemoved": 1576212, "assume-builder.NumBundlesInAssumes": 6518809, "assume-queries.NumAssumeQueries": 85566380, "assume-queries.NumUsefullAssumeQueries": 2727360, the NumUsefullAssumeQueries stat is actually pessimistic because in a few places queries ask to keep providing information to try to get better information. and this isn't counted as a usefull query evem tho it can be usefull Reviewers: jdoerfert Reviewed By: jdoerfert Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83506
Configuration menu - View commit details
-
Copy full SHA for 16f777f - Browse repository at this point
Copy the full SHA 16f777fView commit details -
Call Frame Information (CFI) Handling for Basic Block Sections
This patch handles CFI with basic block sections, which unlike DebugInfo does not support ranges. The DWARF standard explicitly requires emitting separate CFI Frame Descriptor Entries for each contiguous fragment of a function. Thus, the CFI information for all callee-saved registers (possibly including the frame pointer, if necessary) have to be emitted along with redefining the Call Frame Address (CFA), viz. where the current frame starts. CFI directives are emitted in FDE’s in the object file with a low_pc, high_pc specification. So, a single FDE must point to a contiguous code region unlike debug info which has the support for ranges. This is what complicates CFI for basic block sections. Now, what happens when we start placing individual basic blocks in unique sections: * Basic block sections allow the linker to randomly reorder basic blocks in the address space such that a given basic block can become non-contiguous with the original function. * The different basic block sections can no longer share the cfi_startproc and cfi_endproc directives. So, each basic block section should emit this independently. * Each (cfi_startproc, cfi_endproc) directive will result in a new FDE that caters to that basic block section. * Now, this basic block section needs to duplicate the information from the entry block to compute the CFA as it is an independent entity. It cannot refer to the FDE of the original function and hence must duplicate all the stuff that is needed to compute the CFA on its own. * We are working on a de-duplication patch that can share common information in FDEs in a CIE (Common Information Entry) and we will present this as a follow up patch. This can significantly reduce the duplication overhead and is particularly useful when several basic block sections are created. * The CFI directives are emitted similarly for registers that are pushed onto the stack, like callee saved registers in the prologue. There are cfi directives that emit how to retrieve the value of the register at that point when the push happened. This has to be duplicated too in a basic block that is floated as a separate section. Differential Revision: https://reviews.llvm.org/D79978
Configuration menu - View commit details
-
Copy full SHA for c3e6555 - Browse repository at this point
Copy the full SHA c3e6555View commit details -
[mlir][DialectConversion] Emit an error if an operation marked as era…
…sed has live users after conversion Up until now, there has been an implicit agreement that when an operation is marked as "erased" all uses of that operation's results are guaranteed to be removed during conversion. How this works in practice is that there is either an assert/crash/asan failure/etc. This revision adds support for properly detecting when an erased operation has dangling users, emits and error and fails the conversion. Differential Revision: https://reviews.llvm.org/D82830
Configuration menu - View commit details
-
Copy full SHA for b98f414 - Browse repository at this point
Copy the full SHA b98f414View commit details -
[CallGraph] Ignore callback uses
Summary: Ignore callback uses when adding a callback function in the CallGraph. Callback functions are typically created when outlining, e.g. for OpenMP, so they have internal scope and linkage. They should not be added to the ExternalCallingNode since they are only callable by the specified caller function at creation time. A CGSCC pass, such as OpenMPOpt, may need to update the CallGraph by adding a new outlined callback function. Without ignoring callback uses, adding breaks CGSCC pass restrictions and results to a broken CallGraph. Reviewers: jdoerfert Subscribers: hiraditya, sstefan1, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83370
Configuration menu - View commit details
-
Copy full SHA for aef60af - Browse repository at this point
Copy the full SHA aef60afView commit details -
[mlir] Add support for parsing optional Attribute values.
This adds a `parseOptionalAttribute` method to the OpAsmParser that allows for parsing optional attributes, in a similar fashion to how optional types are parsed. This also enables the use of attribute values as the first element of an assembly format optional group. Differential Revision: https://reviews.llvm.org/D83712
Configuration menu - View commit details
-
Copy full SHA for 6b476e2 - Browse repository at this point
Copy the full SHA 6b476e2View commit details -
[flang] Tuning up binary->decimal conversion
Use short division of big-radix values by powers of two when converting values with negative unbiased exponents rather than multiplication by smaller powers of five; this reduces the overall outer iteration count. This change is a win across the entire range of inputs. Reviewed By: tskeith Differential Revision: https://reviews.llvm.org/D83806
Configuration menu - View commit details
-
Copy full SHA for ce6f030 - Browse repository at this point
Copy the full SHA ce6f030View commit details -
[MC] Support .reloc sym+constant, *, *
For `.reloc offset, *, *`, currently offset can be a constant or symbol. This patch makes it support any expression which can be folded to sym+constant. Reviewed By: stefanp Differential Revision: https://reviews.llvm.org/D83751
Configuration menu - View commit details
-
Copy full SHA for b71ef0c - Browse repository at this point
Copy the full SHA b71ef0cView commit details -
[libc++] Automatically detect whether RTTI is enabled
Instead of detecting it automatically but also allowing for the setting to be specified explicitly, always detect whether exceptions are enabled based on whether -fno-rtti (or equivalent) is used. It's less confusing to have a single way of tweaking that knob. This change follows the lead of 71d88ce.
Configuration menu - View commit details
-
Copy full SHA for eaca1e4 - Browse repository at this point
Copy the full SHA eaca1e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0257ba5 - Browse repository at this point
Copy the full SHA 0257ba5View commit details -
[lldb/Test] Always set the cleanupSubprocesses tear down hook
Always clean up subprocesses on tear down instead of relying on the caller to do so. This is not only less error prone but also means the tests can be more concise. Differential revision: https://reviews.llvm.org/D83787
Configuration menu - View commit details
-
Copy full SHA for 4aafc47 - Browse repository at this point
Copy the full SHA 4aafc47View commit details -
[lldb/Test] Skip TestProcessConnect.py on Windows
Remote connections are not supported on Windows.
Configuration menu - View commit details
-
Copy full SHA for c6e8bf7 - Browse repository at this point
Copy the full SHA c6e8bf7View commit details -
[llvm][NFC] expose LLVM_HAVE_TF_API through llvm-config.h
Summary: This allows users of the llvm library discover whether llvm was built with the tensorflow c API dependency, which helps if using the TFUtils wrapper, for example. We don't do the same for the LLVM_HAVE_TF_AOT flag, because that does not expose any API. Reviewers: mehdi_amini, davidxl Subscribers: mgorny, aaron.ballman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83746
Configuration menu - View commit details
-
Copy full SHA for c1e2f73 - Browse repository at this point
Copy the full SHA c1e2f73View commit details -
We need to retain carriage return characters in source files that are not parts of multi-byte line endings; they are significant in CHARACTER literal constants. Reviewed By: tskeith Differential Revision: https://reviews.llvm.org/D83808
Configuration menu - View commit details
-
Copy full SHA for af6b8d5 - Browse repository at this point
Copy the full SHA af6b8d5View commit details -
document -fpch-instantiate-templates in release notes
This should have been included in D69585. Differential Revision: https://reviews.llvm.org/D83622
Configuration menu - View commit details
-
Copy full SHA for d1ca996 - Browse repository at this point
Copy the full SHA d1ca996View commit details -
[clang-tidy] OptionsView::store specialized on bool
Following on fcf7cc2 and 672207c which granted checks the ability to read boolean configuration arguments as `true` or `false`. This enables storing the options back to the configuration file using `true` and `false`. This is in line with how clang-format dumps boolean options in its style config. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D83053
Configuration menu - View commit details
-
Copy full SHA for fcf0f75 - Browse repository at this point
Copy the full SHA fcf0f75View commit details -
[SVE] Make cstfp_pred_ty and cst_pred_ty work with scalable splats
Reviewers: efriedma, lebedev.ri, fhahn, c-rhodes, david-arm Reviewed By: efriedma, david-arm Subscribers: tschuett, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83001
Configuration menu - View commit details
-
Copy full SHA for 9c87c55 - Browse repository at this point
Copy the full SHA 9c87c55View commit details -
[libFuzzer] Separate platform related macros out from FuzzerDefs.h in…
…to FuzzerPlatform.h, and adjust includes in other files. Summary: This patch separates platform related macros in lib/fuzzer/FuzzerDefs.h into lib/fuzzer/FuzzerPlatform.h, and use FuzzerPlatform.h where necessary. This separation helps when compiling libFuzzer's interceptor module (under review); an unnecessary include of standard headers (such as string.h) may produce conflicts/ambiguation with the interceptor's declarations/definitions of library functions, which complicates interceptor implementation. Reviewers: morehouse, hctim Reviewed By: morehouse Subscribers: krytarowski, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D83805
Configuration menu - View commit details
-
Copy full SHA for 226866e - Browse repository at this point
Copy the full SHA 226866eView commit details -
[clang] Teach -fembed-bitcode option not to embed W_value Group
Summary: -fembed-bitcode options doesn't embed warning options since they are useless to code generation. Make sure it handles the W_value group and not embed those options in the output. Reviewers: zixuw, arphaman Reviewed By: zixuw Subscribers: jkorous, dexonsmith, ributzka, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83813
Configuration menu - View commit details
-
Copy full SHA for 2b42080 - Browse repository at this point
Copy the full SHA 2b42080View commit details -
Revert "[compiler-rt][Android] Stop using detect_target_arch"
This reverts commit 9b7e24c. See comments in https://reviews.llvm.org/D82148.
Configuration menu - View commit details
-
Copy full SHA for bef00b2 - Browse repository at this point
Copy the full SHA bef00b2View commit details -
[flang] Fix a crash when an array constructor contains an unlimited p…
…olymorphic value Summary: C7113 States that "An ac-value shall not be unlimited polymorphic." We failed to detect this situation which resulted in a crash when trying to get the underlying derived type specification of the unlimited polymorphic value. I added code to avoid the crash, code to emit an error message, and a test. Reviewers: klausler, tskeith, DavidTruby Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83793
Configuration menu - View commit details
-
Copy full SHA for 0c64cb6 - Browse repository at this point
Copy the full SHA 0c64cb6View commit details -
[libFuzzer] Fix compilation error by including missing platform macro…
… definitions. Summary: This patch fixes sanitizer-windows build errors. Reviewers: morehouse, hctim Reviewed By: morehouse, hctim Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D83823
Configuration menu - View commit details
-
Copy full SHA for 750369e - Browse repository at this point
Copy the full SHA 750369eView commit details -
AMDGPU: Add @line to assembler error test checks
It was basically impossible to figure out where the failure point was
Configuration menu - View commit details
-
Copy full SHA for 4c22f5f - Browse repository at this point
Copy the full SHA 4c22f5fView commit details -
[flang] Implement anonymous units in the runtime
I/O from/to an unopened unit number needs to open &/or create a "fort.$UNIT" file. Fixes FCVS test fm401.f. Reviewed By: tskeith Differential Revision: https://reviews.llvm.org/D83809
Configuration menu - View commit details
-
Copy full SHA for bd43fa2 - Browse repository at this point
Copy the full SHA bd43fa2View commit details -
[lldb/Test] Create reproducer dir if necessary
Create the reproducer directory under the build root if it doesn't exists. The reproducer will only create the top level directory.
Configuration menu - View commit details
-
Copy full SHA for 984e12a - Browse repository at this point
Copy the full SHA 984e12aView commit details -
[flang] Fix list-directed input (repeated nulls and LOGICAL)
Allow repeated nulls in list-directed input (e.g., "4*,") and ignore excess characters in list-directed LOGICAL input after the T or F. Fixes FCVS test fm923.f. Reviewed By: sscalpone Differential Revision: https://reviews.llvm.org/D83810
Configuration menu - View commit details
-
Copy full SHA for 8dbc86a - Browse repository at this point
Copy the full SHA 8dbc86aView commit details
Commits on Jul 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f49edaf - Browse repository at this point
Copy the full SHA f49edafView commit details -
Fix undefined behavior due to deleting an object with a non-virtual
destructor via a pointer of the wrong static type. This caused crashes during deallocation in C++14 builds when using a deallocator whose sized delete requires the size argument to be correct. Also make the LazyCallThroughManager destructor protected to catch this sort of bug in the future.
Configuration menu - View commit details
-
Copy full SHA for 099fd37 - Browse repository at this point
Copy the full SHA 099fd37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75c0f0d - Browse repository at this point
Copy the full SHA 75c0f0dView commit details -
[flang][openacc] Semantic checks for OpenACC 3.0 clauses validity
Summary: This patch adds semantic checking for the OpenACC 3.0 clauses validity. Reviewers: sscalpone, tskeith, klausler, ichoyjx, DavidTruby, jdoerfert Reviewed By: tskeith, klausler Subscribers: mgorny, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D83807
Configuration menu - View commit details
-
Copy full SHA for 9aa3dca - Browse repository at this point
Copy the full SHA 9aa3dcaView commit details -
[flang] Fix out-of-tree build with missing acc_gen target
This pacth fix out-of-tree build of Flang after the introduction of acc_gen. Reviewed By: sscalpone Differential Revision: https://reviews.llvm.org/D83835
Configuration menu - View commit details
-
Copy full SHA for 8e9a505 - Browse repository at this point
Copy the full SHA 8e9a505View commit details -
Fix the skipIfRosetta decorator
the form that takes func as an argument isn't compatible with the optional bugnumber argument. This means that only correct for to use it is now @skipIfRosetta(bugnumber='url')
Configuration menu - View commit details
-
Copy full SHA for 74c8d01 - Browse repository at this point
Copy the full SHA 74c8d01View commit details -
Make LazyCallThroughManager destructor virtual rather than arranging for
all clients to delete it via the correct dynamic type.
Configuration menu - View commit details
-
Copy full SHA for 7129237 - Browse repository at this point
Copy the full SHA 7129237View commit details -
[IR] Add a few asserts to provide a better failure signature if you t…
…ry to create a load/store/alloca with no alignment or insertion position If no alignment is specified we try to find the datalayout by using the insert position to get the module so we can get the datalayout. But if those are null, then we deference a null pointer. This patch adds asserts to make the failure a little more obvious than just seg faulting. Differential Revision: https://reviews.llvm.org/D83829
Configuration menu - View commit details
-
Copy full SHA for 81cfb90 - Browse repository at this point
Copy the full SHA 81cfb90View commit details -
[ObjectFilePECOFF] Try to avoid unaligned access.
Fixes an UBSAN error.
Davide Italiano committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 61cf9f4 - Browse repository at this point
Copy the full SHA 61cf9f4View commit details -
[Attributor] Create getter function for the ID of the abstract attribute
Summary: The `getIdAddr()` function returns the address of the ID of the abstract attribute Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis Reviewed By: jdoerfert Subscribers: okura, hiraditya, uenoku, kuter, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83172
Configuration menu - View commit details
-
Copy full SHA for 233af89 - Browse repository at this point
Copy the full SHA 233af89View commit details -
[AMDGPU] Apply pre-emit s_cbranch_vcc optimation to more patterns
Add handling of s_andn2 and mask of 0. This eliminates redundant instructions from uniform control flow. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D83641
Configuration menu - View commit details
-
Copy full SHA for 6742261 - Browse repository at this point
Copy the full SHA 6742261View commit details -
[Attributor] Unittest for Attributor
Summary: This patch introduces basic unittest interface for the Attributor and a simple test case for casting. Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis Reviewed By: jdoerfert Subscribers: mgorny, uenoku, kuter, okura, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83754
Configuration menu - View commit details
-
Copy full SHA for 0750757 - Browse repository at this point
Copy the full SHA 0750757View commit details -
Configuration menu - View commit details
-
Copy full SHA for 670e837 - Browse repository at this point
Copy the full SHA 670e837View commit details -
[Attributor] [WIP] Track AA dependency using dependency graph
Summary: This patch added dependency graph to the attributor so that we can dump the dependencies between AAs more easily. We can also apply general graph algorithms to the graph, making it easier for us to create deep wrappers. Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis Reviewed By: jdoerfert Subscribers: jfb, okura, mgrang, kuter, lebedev.ri, hiraditya, uenoku, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78861
Configuration menu - View commit details
-
Copy full SHA for 6b78ed6 - Browse repository at this point
Copy the full SHA 6b78ed6View commit details -
[CMake] Simplify CMake handling for zlib
Rather than handling zlib handling manually, use find_package from CMake to find zlib properly. Use this to normalize the LLVM_ENABLE_ZLIB, HAVE_ZLIB, HAVE_ZLIB_H. Furthermore, require zlib if LLVM_ENABLE_ZLIB is set to YES, which requires the distributor to explicitly select whether zlib is enabled or not. This simplifies the CMake handling and usage in the rest of the tooling. This is a reland of abb0075 with all followup changes and fixes that should address issues that were reported in PR44780. Differential Revision: https://reviews.llvm.org/D79219
Configuration menu - View commit details
-
Copy full SHA for 8c1a79d - Browse repository at this point
Copy the full SHA 8c1a79dView commit details -
Revert "[Attributor] [WIP] Track AA dependency using dependency graph"
This reverts commit 6b78ed6.
Configuration menu - View commit details
-
Copy full SHA for e21323a - Browse repository at this point
Copy the full SHA e21323aView commit details -
[Attributor] Track AA dependency using dependency graph
Summary: This patch added dependency graph to the attributor so that we can dump the dependencies between AAs more easily. We can also apply general graph algorithms to the graph, making it easier for us to create deep wrappers. Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis Reviewed By: jdoerfert Subscribers: jfb, okura, mgrang, kuter, lebedev.ri, hiraditya, uenoku, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78861
Configuration menu - View commit details
-
Copy full SHA for 8df7af5 - Browse repository at this point
Copy the full SHA 8df7af5View commit details -
Revert "[CMake] Simplify CMake handling for zlib"
This reverts commit 8c1a79d because it fails when zlib isn't installed.
Configuration menu - View commit details
-
Copy full SHA for bcd27d9 - Browse repository at this point
Copy the full SHA bcd27d9View commit details -
[OpenMP] Emit remarks during GPU state machine optimization
Since D83271 we can optimize the GPU state machine to avoid spurious call edges that increase the register usage of kernels. With this patch we inform the user why and if this optimization is happening and when it is not. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D83707
Configuration menu - View commit details
-
Copy full SHA for fec1f21 - Browse repository at this point
Copy the full SHA fec1f21View commit details -
[CallGraph] Update callback call sites in RefreshCallGraph
Since D82572, we keep "reference" edges for callback call sites. While not strictly necessary they can improve the traversal order. However, we did not update them properly in case a pass removed the callback call site which caused a verification error (PR46687). With this patch we update these reference edges properly during the invocation of `CallGraphSCCPass::RefreshCallGraph` in non-checking mode. Reviewed By: sdmitriev Differential Revision: https://reviews.llvm.org/D83718
Configuration menu - View commit details
-
Copy full SHA for 64d99a1 - Browse repository at this point
Copy the full SHA 64d99a1View commit details -
[OpenMP][IRBuilder] Support nested parallel regions
During code generation we might change/add basic blocks so keeping a list of them is fairly easy to break. Nested parallel regions were enough. The new scheme does recompute the list of blocks to be outlined once it is needed. Reviewed By: anchu-rajendran Differential Revision: https://reviews.llvm.org/D82722
Configuration menu - View commit details
-
Copy full SHA for 7af287d - Browse repository at this point
Copy the full SHA 7af287dView commit details -
Revert "[Attributor] Track AA dependency using dependency graph"
This reverts commit 8df7af5.
Configuration menu - View commit details
-
Copy full SHA for 6db99d1 - Browse repository at this point
Copy the full SHA 6db99d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d87c92e - Browse repository at this point
Copy the full SHA d87c92eView commit details -
[Attributor] Fix build of unittest with DBUILD_SHARED_LIBS=True
The dependencies in llvm/unittests/Transforms/IPO/CMakeLists.txt introduced in revision 0750757 were incomplete, leading to link errors for a DBUILD_SHARED_LIBS=True build.
Configuration menu - View commit details
-
Copy full SHA for 5282a61 - Browse repository at this point
Copy the full SHA 5282a61View commit details -
[llvm][NFC] Hide the tensorflow dependency from headers.
Summary: This change avoids exposing tensorflow types when including TFUtils.h. They are just an implementation detail, and don't need to be used directly when implementing an analysis requiring ML model evaluation. The TFUtils APIs, while generically typed, are still not exposed unless the tensorflow C library is present, as they currently have no use otherwise. Reviewers: mehdi_amini, davidxl Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83843
Configuration menu - View commit details
-
Copy full SHA for 4f763b2 - Browse repository at this point
Copy the full SHA 4f763b2View commit details -
[LLD] [MinGW] Implement the --file-alignment and --section-alignment …
…options Differential Revision: https://reviews.llvm.org/D83720
Configuration menu - View commit details
-
Copy full SHA for 92f7bd3 - Browse repository at this point
Copy the full SHA 92f7bd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 694ded3 - Browse repository at this point
Copy the full SHA 694ded3View commit details -
[mlir][Vector] Degrade masking information when forwarding linalg.cop…
…y to vector.transfer Summary: linalg.copy + linalg.fill can be used to create a padded local buffer. The `masked` attribute is only valid on this padded buffer. When forwarding to vector.transfer ops, the attribute must be reset conservatively. Differential Revision: https://reviews.llvm.org/D83782
Nicolas Vasilache committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 512da70 - Browse repository at this point
Copy the full SHA 512da70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f680be - Browse repository at this point
Copy the full SHA 7f680beView commit details -
Configuration menu - View commit details
-
Copy full SHA for c86c1e9 - Browse repository at this point
Copy the full SHA c86c1e9View commit details -
Make linalg::ReshapeOp implement ViewLikeOpInterface
Summary: A reshape aliases its input memref, so it acts like a view. Differential Revision: https://reviews.llvm.org/D83773
Stephan Herhut committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 1919c8b - Browse repository at this point
Copy the full SHA 1919c8bView commit details -
[MLIR][SPIRVToLLVM] SPIRV function fix and nits
This patch addresses the comments from https://reviews.llvm.org/D83030 and https://reviews.llvm.org/D82639. `this->` is removed when not inside the template. Also, type conversion for `spv.func` takes `convertRegionTypes()` in order to apply type conversion on all blocks within the function. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D83786
Configuration menu - View commit details
-
Copy full SHA for d431951 - Browse repository at this point
Copy the full SHA d431951View commit details -
[NFC] Add tests for boolean comparisons
They currently show that the not equal case may be improved. See PR42876 Differential Revision: https://reviews.llvm.org/D65801
Configuration menu - View commit details
-
Copy full SHA for 2b6215f - Browse repository at this point
Copy the full SHA 2b6215fView commit details -
[DAGCombiner] Rebuild (setcc x, y, ==) from (xor (xor x, y), 1)
The existing code already considered this case. Unfortunately a typo in the condition prevents it from triggering. Also the existing code, had it run, forgot to do the folding. This fixes PR42876. Differential Revision: https://reviews.llvm.org/D65802
Configuration menu - View commit details
-
Copy full SHA for 14bc5e1 - Browse repository at this point
Copy the full SHA 14bc5e1View commit details -
[RISCV] Add error checking for extensions missing separating underscores
Currently if two multi-letter extensions are provided in a -march= string, the verification code checks the version of the first and consumes the second, resulting in that part of the architecture string being ignored. This adds a test that when a version number has been parsed for an extension, there are no subsequent characters. Differential Revision: https://reviews.llvm.org/D83819
Configuration menu - View commit details
-
Copy full SHA for de7bf72 - Browse repository at this point
Copy the full SHA de7bf72View commit details -
[lldb][formatters] Add support for printing NSConstantDate and fix di…
…stantPast value Summary: Certain `NSDate` constructors return a special `NSConstantDate` class which currently ends up being unformatted as it's not in the list of supported classes for the NSDate formatter. This patch adds that class to the supported class list so LLDB produces a summary for it. One of these special constructors is `[NSDate distantPast]` which returns the date for `0001-01-01 00:00:00 UTC`. LLDB has a special case for formatting this date but for some reason we did hardcode the wrong summary string in that special case. Maybe the summary string was correct back when the code was written but it isn't correct anymore (`distantPast` isn't actually defined to be a special date but just some 'a guaranteed temporal boundary.' so maybe someone changed the value in the last 10 years). If someone else is wondering why we even have this special case for `distantPast` but not for the future. The reason seems to be that our date formatting for really old dates is off by 24 hours. So for example, adding one second to `distantPast` will cause LLDB to print `0000-12-30 00:00:01 UTC` (which is 24 hours behind the expected result). So to make our code appear to be correct it seems we just hardcoded the most common NSDate result from that time span. I'll replace that logic with a generic solution in a probably more invasive follow up patch. I also took the freedom to replace the magic value `-63114076800` with some constant + documentation. I heard there are some people that don't know from the top of their head that there are 63114076800 seconds between 1. Jan 0001 and 1. January 2001 in whatever calendar system NSDate is using. Reviewers: mib, davide Reviewed By: mib Subscribers: JDevlieghere Differential Revision: https://reviews.llvm.org/D83217
Configuration menu - View commit details
-
Copy full SHA for 001c78d - Browse repository at this point
Copy the full SHA 001c78dView commit details -
[clang][Driver] Fix tool path priority test failures
Summary: Failure type 1: This test can fail when the path of the build includes the strings we're checking for. E.g "/gcc" is found in ".../gcc_7.3.0/..." To correct this look for '"' on the end of all matches. So that we only match the end of paths printed by clang -###. (which would be ".../gcc_7.3.0/.../gcc" for the example) Also look for other gcc names like gcc-x.y.z in the first check. This confirms that the copy of clang we made is isolated as expected. Failure type 2: If you use a triple like "powerpc64le-linux-gnu" clang actually reports "powerpc64le-unknown-linux-gnu". Then it searches for the former. That combined with Mac OS adding a version number to cmake's triple means we can't trust cmake or clang to give us the one default triple. To fix the test, write to both names. As they don't overlap with our fake triple, we're still showing that the lookup works. Reviewers: MaskRay, stevewan Reviewed By: stevewan Subscribers: miyuki, JDevlieghere, steven.zhang, stevewan, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83055
Configuration menu - View commit details
-
Copy full SHA for fe59122 - Browse repository at this point
Copy the full SHA fe59122View commit details -
AArch64+ARM: make LLVM consider system registers volatile.
Some of the system registers readable on AArch64 and ARM platforms return different values with each read (for example a timer counter), these shouldn't be hoisted outside loops or otherwise interfered with, but the normal @llvm.read_register intrinsic is only considered to read memory. This introduces a separate @llvm.read_volatile_register intrinsic and maps all system-registers on ARM platforms to use it for the __builtin_arm_rsr calls. Registers declared with asm("r9") or similar are unaffected.
Configuration menu - View commit details
-
Copy full SHA for 5165b2b - Browse repository at this point
Copy the full SHA 5165b2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9697a9e - Browse repository at this point
Copy the full SHA 9697a9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f782d9c - Browse repository at this point
Copy the full SHA f782d9cView commit details -
[Support] Fix Windows directory_iterator_construct out of bounds
Fix incorrect use of the size of Path when accessing PathUTF16, as the UTF-16 path can be shorter. Added unit test for coverage of this test case. Thanks to Ding Fei (danix800) for the code fix, see https://reviews.llvm.org/D83321. Differential Revision: https://reviews.llvm.org/D83689
Configuration menu - View commit details
-
Copy full SHA for f6eb5da - Browse repository at this point
Copy the full SHA f6eb5daView commit details -
[llvm-readobj] - Verify the location of program headers better.
This improves condition in the ELFFile::program_headers(). Previously if was possible to read the headers from the wrong place when the value of e_phoff was so large that computation overflowed. Differential revision: https://reviews.llvm.org/D83774
Georgii Rymar committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 327c445 - Browse repository at this point
Copy the full SHA 327c445View commit details -
[Matrix] Only pass vector arg as overloaded type in MatrixBuilder.
In 2b3c505, the pointer arguments for the matrix load and store intrinsics was changed to always be the element type of the vector argument. This patch updates the MatrixBuilder to not add the pointer type to the overloaded types and adjusts the clang/mlir tests. This should fix a few build failures on GreenDragon, including http://green.lab.llvm.org/green/job/test-suite-verify-machineinstrs-x86_64-O0-g/7891/
Configuration menu - View commit details
-
Copy full SHA for c872e80 - Browse repository at this point
Copy the full SHA c872e80View commit details -
[yaml2obj] - Rename FileHeader::SH* fields.
In D83482 we agreed to name e_* fields that are used for overriding values (like e_phoff) as EPh* (e.g. EPhOff). Currently we have a set of e_sh* fields that are named inconsistently with this rule. This patch renames all of them. Differential revision: https://reviews.llvm.org/D83766
Georgii Rymar committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 7a587ca - Browse repository at this point
Copy the full SHA 7a587caView commit details -
[RISCV] Fix RISCVInstrInfo::getInstSizeInBytes for atomics pseudos
Summary: Without these, the generic branch relaxation pass will underestimate the range required for branches spanning these and we can end up with "fixup value out of range" errors rather than relaxing the branches. Some of the instructions in the expansion may end up being compressed but exactly determining that is awkward, and these conservative values should be safe, if slightly suboptimal in rare cases. Reviewers: asb, lenary, luismarques, lewis-revill Reviewed By: asb, luismarques Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, jfb, PkmX, jocewei, psnobl, benna, Jim, s.egerton, pzheng, sameer.abuasal, apazos, evandro, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77443
Configuration menu - View commit details
-
Copy full SHA for 3382c24 - Browse repository at this point
Copy the full SHA 3382c24View commit details -
[RISCV] Duplicate pseudo expansion comment to RISCVMCCodeEmitter
Follow-on from D77443. Although we're not fixing any of these pseudo-instructions, the potential for them to be out of sync still exists.
Configuration menu - View commit details
-
Copy full SHA for 2dc16fb - Browse repository at this point
Copy the full SHA 2dc16fbView commit details -
[LLD][ELF] - Update test after yaml2obj change. NFC.
Names of YAML keys changed in rG7a587ca93200c49e47fe205ce037895c81c5a542
Georgii Rymar committedJul 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 2e10b7a - Browse repository at this point
Copy the full SHA 2e10b7aView commit details
Commits on Dec 15, 2020
-
Merge remote-tracking branch 'origin/master' into updated-master-12-init
# Conflicts: # .gitignore # README.md # clang-tools-extra/clang-tidy-vs/ClangTidy/packages.config # clang-tools-extra/clangd/CMakeLists.txt # clang-tools-extra/clangd/ClangdLSPServer.cpp # clang-tools-extra/clangd/ClangdLSPServer.h # clang-tools-extra/clangd/ClangdServer.cpp # clang-tools-extra/clangd/ClangdServer.h # clang-tools-extra/clangd/Diagnostics.cpp # clang-tools-extra/clangd/tool/ClangdMain.cpp # clang/include/clang/AST/ASTContext.h # clang/include/clang/AST/ASTNodeTraverser.h # clang/include/clang/AST/Decl.h # clang/include/clang/AST/DeclBase.h # clang/include/clang/AST/Expr.h # clang/include/clang/AST/Stmt.h # clang/include/clang/AST/TextNodeDumper.h # clang/include/clang/AST/Type.h # clang/include/clang/AST/TypeNodes.def # clang/include/clang/Basic/CodeGenOptions.def # clang/include/clang/Basic/DiagnosticGroups.td # clang/include/clang/Basic/DiagnosticParseKinds.td # clang/include/clang/Basic/DiagnosticSemaKinds.td # clang/include/clang/Basic/Specifiers.h # clang/include/clang/Driver/Options.td # clang/include/clang/Parse/Parser.h # clang/include/clang/Sema/DeclSpec.h # clang/include/clang/Serialization/ASTBitCodes.h # clang/include/clang/Serialization/ASTReader.h # clang/include/clang/Serialization/ASTWriter.h # clang/lib/AST/ASTContext.cpp # clang/lib/AST/ASTImporter.cpp # clang/lib/AST/ASTStructuralEquivalence.cpp # clang/lib/AST/CMakeLists.txt # clang/lib/AST/Decl.cpp # clang/lib/AST/Expr.cpp # clang/lib/AST/ItaniumMangle.cpp # clang/lib/AST/TextNodeDumper.cpp # clang/lib/AST/Type.cpp # clang/lib/AST/TypePrinter.cpp # clang/lib/Basic/IdentifierTable.cpp # clang/lib/CMakeLists.txt # clang/lib/CodeGen/CGDebugInfo.h # clang/lib/CodeGen/CGDecl.cpp # clang/lib/CodeGen/CGExpr.cpp # clang/lib/CodeGen/CodeGenFunction.cpp # clang/lib/CodeGen/ItaniumCXXABI.cpp # clang/lib/Frontend/CompilerInvocation.cpp # clang/lib/Parse/ParseDecl.cpp # clang/lib/Parse/ParseDeclCXX.cpp # clang/lib/Parse/ParseExpr.cpp # clang/lib/Parse/ParseExprCXX.cpp # clang/lib/Parse/ParsePragma.cpp # clang/lib/Sema/CMakeLists.txt # clang/lib/Sema/DeclSpec.cpp # clang/lib/Sema/Sema.cpp # clang/lib/Sema/SemaCast.cpp # clang/lib/Sema/SemaChecking.cpp # clang/lib/Sema/SemaDecl.cpp # clang/lib/Sema/SemaExceptionSpec.cpp # clang/lib/Sema/SemaExpr.cpp # clang/lib/Sema/SemaInit.cpp # clang/lib/Sema/SemaTemplateDeduction.cpp # clang/lib/Sema/SemaType.cpp # clang/lib/Sema/TreeTransform.h # clang/lib/Serialization/ASTReader.cpp # clang/lib/Serialization/ASTReaderDecl.cpp # clang/lib/Serialization/ASTReaderStmt.cpp # clang/lib/Serialization/ASTWriter.cpp # clang/lib/Serialization/ASTWriterStmt.cpp # clang/lib/StaticAnalyzer/Core/ExprEngine.cpp # clang/test/AST/ast-dump-attr.m # clang/test/AST/ast-dump-c-attr.c # clang/test/AST/sourceranges.cpp # clang/test/Analysis/designated-initializer.c # clang/test/lit.cfg.py # clang/test/lit.site.cfg.py.in # clang/tools/clang-format-vs/README.txt # clang/tools/clang-import-test/clang-import-test.cpp # llvm/CMakeLists.txt # llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h # llvm/unittests/ADT/CMakeLists.txt
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for da3b31a - Browse repository at this point
Copy the full SHA da3b31aView commit details -
kakje committed
Dec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 26f18ec - Browse repository at this point
Copy the full SHA 26f18ecView commit details -
Remove leftover merge conflict marker in Decl.h
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 16e7d7f - Browse repository at this point
Copy the full SHA 16e7d7fView commit details -
Change NumCtorInitializers from 21 to 17
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for f16a170 - Browse repository at this point
Copy the full SHA f16a170View commit details -
Define Checked C specific types TypeVariable and Existential (includi…
…ng serialization information)
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 726b606 - Browse repository at this point
Copy the full SHA 726b606View commit details -
Fix TypeVariable and Existential constructors
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 3b7f388 - Browse repository at this point
Copy the full SHA 3b7f388View commit details -
Add ArraySubscriptExprBitfields to Stmt.h
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for b3a01d3 - Browse repository at this point
Copy the full SHA b3a01d3View commit details -
Expr: remove Op initializer from CastExpr
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 6180bed - Browse repository at this point
Copy the full SHA 6180bedView commit details -
Expr: replace boolean dependence constructor arguments with setDepend…
…ence calls for Checked C specific expressions
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for b031aa9 - Browse repository at this point
Copy the full SHA b031aa9View commit details -
kakje committed
Dec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 98ccad8 - Browse repository at this point
Copy the full SHA 98ccad8View commit details -
Add ASTContext argument to Stmt::dump calls in CanonBounds and Preord…
…erAST
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for adb7bb3 - Browse repository at this point
Copy the full SHA adb7bb3View commit details -
Use BinaryOperator::Create and UnaryOperator::Create
(cherry picked from commit 08939ad)
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 79199c6 - Browse repository at this point
Copy the full SHA 79199c6View commit details -
Add ASTContext argument to more Stmt::dump calls
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for ce4b462 - Browse repository at this point
Copy the full SHA ce4b462View commit details -
Make BinaryOperator constructor public (needed for SemaBounds inverti…
…bility methods)
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 2824c4c - Browse repository at this point
Copy the full SHA 2824c4cView commit details -
ASTContext: add size expr argument to getConstantArrayType
kakje committedDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 63e08e1 - Browse repository at this point
Copy the full SHA 63e08e1View commit details
Commits on Dec 16, 2020
-
Include TargetInfo.h from ASTContext.h
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for a8fda06 - Browse repository at this point
Copy the full SHA a8fda06View commit details -
ASTContext: add argument to FunctionProtoType::totalSizeToAlloc
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 01bc9fc - Browse repository at this point
Copy the full SHA 01bc9fcView commit details -
Fix more BinaryOperator and UnaryOperator Create and constructor calls
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 8f98a1c - Browse repository at this point
Copy the full SHA 8f98a1cView commit details -
Add ASTContext argument to Stmt::dump calls in DumpBoundsContext and …
…DumpExprsSet
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for cda81a8 - Browse repository at this point
Copy the full SHA cda81a8View commit details -
Add argument to RebuildDeclRefExpr
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 64462cb - Browse repository at this point
Copy the full SHA 64462cbView commit details -
Use S rather than E in SemaExceptionSpec.cpp
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 8a3f09c - Browse repository at this point
Copy the full SHA 8a3f09cView commit details -
Use Language::C rather than InputKind::C in CompilerInvocation
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 1c93a27 - Browse repository at this point
Copy the full SHA 1c93a27View commit details -
Include <stack> from CheckedCSubst.cpp
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for ccbe106 - Browse repository at this point
Copy the full SHA ccbe106View commit details -
Add boolean argument to setLastDiagnosticIgnored
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 368ca14 - Browse repository at this point
Copy the full SHA 368ca14View commit details -
Add CGF argument to code gen getAddress calls
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 38892ae - Browse repository at this point
Copy the full SHA 38892aeView commit details -
SemaType: add size expr argument to getConstantArrayType call
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 86c1549 - Browse repository at this point
Copy the full SHA 86c1549View commit details -
Add bounds annotations and bounds expr methods to ASTRecordReader and…
… ASTRecordWriter
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 3bbc6f2 - Browse repository at this point
Copy the full SHA 3bbc6f2View commit details -
Fix build failures in SimpleBoundsChecker.cpp
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for d868277 - Browse repository at this point
Copy the full SHA d868277View commit details -
SimpleBoundsChecker: use PathSensitiveBugReport rather than BugReport…
… to generate a bug report
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 5b281cb - Browse repository at this point
Copy the full SHA 5b281cbView commit details -
Fix SemaTemplate call of BuildDeclRefExpr to reflect ExprResult retur…
…n type
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for ec3eb7b - Browse repository at this point
Copy the full SHA ec3eb7bView commit details -
Add GetTemporaryExpr method to MaterializeTemporaryExpr
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 343c698 - Browse repository at this point
Copy the full SHA 343c698View commit details -
Add Checked C specific Visit* methods to ASTReaderStmt and ASTWriterStmt
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 260bc32 - Browse repository at this point
Copy the full SHA 260bc32View commit details -
Add more Checked C specific methods to ASTReaderStmt and ASTWriterStmt
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for 9d0eb90 - Browse repository at this point
Copy the full SHA 9d0eb90View commit details -
Add VisitTypeVariableTypeLoc and VisitExistentialTypeLoc to ASTReader…
… and ASTWriter
kakje committedDec 16, 2020 Configuration menu - View commit details
-
Copy full SHA for d3a084f - Browse repository at this point
Copy the full SHA d3a084fView commit details
Commits on Dec 17, 2020
-
3C: Replace clang/Tooling/Refactoring/SourceCode.h with clang/Tooling…
…/Transformer/SourceCode.h
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 6af282c - Browse repository at this point
Copy the full SHA 6af282cView commit details -
3C: Make llvm::StringRef to std::string conversions explicit
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for a964aa6 - Browse repository at this point
Copy the full SHA a964aa6View commit details -
3C: Add ASTContext argument to Stmt::dump call
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 4ea1117 - Browse repository at this point
Copy the full SHA 4ea1117View commit details -
3C: Remove ast_type_traits namespace in favor of clang
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 6254f76 - Browse repository at this point
Copy the full SHA 6254f76View commit details -
3C: Include clang/AST/ParentMapContext.h to support ASTContext::getPa…
…rents call in CheckedRegions.cpp
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 0576be6 - Browse repository at this point
Copy the full SHA 0576be6View commit details -
3C: Return std::unique_ptr<FrontendAction> rather than FrontendAction…
… * from ArgFrontendActonFactory::create
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 9e2728a - Browse repository at this point
Copy the full SHA 9e2728aView commit details -
3C: Use llvm::ErrorOr<const clang::FileEntry *> rather than const auto *
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for bcafb8c - Browse repository at this point
Copy the full SHA bcafb8cView commit details -
3C: Replace clangToolingRefactoring dependency with clangTransformer
kakje committedDec 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 3648b10 - Browse repository at this point
Copy the full SHA 3648b10View commit details
Commits on Dec 18, 2020
-
ASTReaderStmt: add Checked C specific cases to ReadStmtFromStream (to…
… fix build warnings)
kakje committedDec 18, 2020 Configuration menu - View commit details
-
Copy full SHA for d979b01 - Browse repository at this point
Copy the full SHA d979b01View commit details -
Add /bigobj flag to fix Windows debug x64 build errors
kakje committedDec 18, 2020 Configuration menu - View commit details
-
Copy full SHA for fbfd50f - Browse repository at this point
Copy the full SHA fbfd50fView commit details
Commits on Dec 19, 2020
-
Adjust ConstantArrayTypeBitfields to reflect ArrayTypeBitfields.Check…
…edArrayKind
kakje committedDec 19, 2020 Configuration menu - View commit details
-
Copy full SHA for eab6a8d - Browse repository at this point
Copy the full SHA eab6a8dView commit details
Commits on Dec 29, 2020
-
NonModifyingExprSema: replace VisitBinAssign and VisitCompoundAssignO…
…perator with VisitBinaryOperator (due to clang 11 changes to RecursiveASTVisitor)
kakje committedDec 29, 2020 Configuration menu - View commit details
-
Copy full SHA for 607ee30 - Browse repository at this point
Copy the full SHA 607ee30View commit details
Commits on Dec 31, 2020
-
Checked C inferred-bounds tests: add {{.*}} to expected output to mat…
…ch source range output in Stmt::dump
kakje committedDec 31, 2020 Configuration menu - View commit details
-
Copy full SHA for 3322e51 - Browse repository at this point
Copy the full SHA 3322e51View commit details -
Checked C inferred-bounds tests: adjust expected CFG return statement…
… output
kakje committedDec 31, 2020 Configuration menu - View commit details
-
Copy full SHA for cc6b536 - Browse repository at this point
Copy the full SHA cc6b536View commit details -
SemaBounds.cpp: add ASTContext argument to Stmt::dump calls for TRACE…
…_CFG and TRACE_RANGE
kakje committedDec 31, 2020 Configuration menu - View commit details
-
Copy full SHA for 4942f22 - Browse repository at this point
Copy the full SHA 4942f22View commit details
Commits on Jan 1, 2021
-
Add CompareImpl for ConstantExprs to CanonBounds
kakje committedJan 1, 2021 Configuration menu - View commit details
-
Copy full SHA for dca8a35 - Browse repository at this point
Copy the full SHA dca8a35View commit details
Commits on Jan 4, 2021
-
Explicitly initialize bounds expressions for unary operators, array s…
…ubscripts, and member expressions
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 421b586 - Browse repository at this point
Copy the full SHA 421b586View commit details -
Read and write checked specifiers for compound statements and declara…
…tions
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 11bc96e - Browse repository at this point
Copy the full SHA 11bc96eView commit details -
Read bounds expression information for expressions
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 53696f5 - Browse repository at this point
Copy the full SHA 53696f5View commit details -
Read bounds annotations for declarator decls
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for a77e584 - Browse repository at this point
Copy the full SHA a77e584View commit details -
Read and write generic information for functions
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for f6c3095 - Browse repository at this point
Copy the full SHA f6c3095View commit details -
Write bounds expression information for expressions
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 7bf6a4d - Browse repository at this point
Copy the full SHA 7bf6a4dView commit details -
Pass AllowCXX argument to mergeFunctionTypes
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 0fd2ab1 - Browse repository at this point
Copy the full SHA 0fd2ab1View commit details -
Add CheckedPointerKind argument to serialization information for Poin…
…terType
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for bd84955 - Browse repository at this point
Copy the full SHA bd84955View commit details -
Add CheckedArrayKind to serialization information for ConstantArrayTy…
…pe and IncompleteArrayType
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for e745598 - Browse repository at this point
Copy the full SHA e745598View commit details -
Add ParamAnnots, ReturnAnnots, NumTypeVars, GenericFunction, and Ityp…
…eGenericFunction arguments to serialization information for FunctionProtoType
kakje committedJan 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 223e144 - Browse repository at this point
Copy the full SHA 223e144View commit details
Commits on Jan 5, 2021
-
Add clang/out directory to .gitignore
kakje committedJan 5, 2021 Configuration menu - View commit details
-
Copy full SHA for 93749c7 - Browse repository at this point
Copy the full SHA 93749c7View commit details
Commits on Jan 8, 2021
-
ASTWriterStmt: comment out getExprImplicitCastAbbrev call
kakje committedJan 8, 2021 Configuration menu - View commit details
-
Copy full SHA for 460f9fa - Browse repository at this point
Copy the full SHA 460f9faView commit details -
In the class FunctionDeclBitFields at line 1512, 6 bits are added for
Checked C support. As per the comment on line 1509, the variable NumfunctionDeclBits needs to be 33 (the sum of the sizes of all the bit fields) The size of class CXXConstructorDeclBitfields (on line 1591) needs to be 64 bits. Accordingly, the value of the field NumCtorInitializers (one line 1603) needs to be adjusted.
Configuration menu - View commit details
-
Copy full SHA for e08e3f6 - Browse repository at this point
Copy the full SHA e08e3f6View commit details
Commits on Jan 9, 2021
-
Exclude StmtExprs from CheckingState.SameValue
Comparing StmtExprs causes an assertion failure in CanonBounds.cpp since their children are Stmts, not Exprs. This assertion failure previously caused the CodeGen/arm-neon-range-checks.c test to fail.
kakje committedJan 9, 2021 Configuration menu - View commit details
-
Copy full SHA for d3980bc - Browse repository at this point
Copy the full SHA d3980bcView commit details
Commits on Jan 12, 2021
-
Add MatrixSubscriptExpr case for GetArrayPtrDereference method in Sem…
…aBounds.cpp
kakje committedJan 12, 2021 Configuration menu - View commit details
-
Copy full SHA for f365a69 - Browse repository at this point
Copy the full SHA f365a69View commit details -
Prevent ParseUniqueStableNameExpression from falling through to Parse…
…BoundsCastExpression
kakje committedJan 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 7a299a4 - Browse repository at this point
Copy the full SHA 7a299a4View commit details
Commits on Jan 14, 2021
-
Remove expected implicit value initializer from designated-initialize…
…r.c test This reflects the pruning of ImplicitValueInitExprs from the CFG in llvm-project commit 9fdcae7
kakje committedJan 14, 2021 Configuration menu - View commit details
-
Copy full SHA for 7a3c221 - Browse repository at this point
Copy the full SHA 7a3c221View commit details -
Add 24 to each expected offset in ast-dump-expr-json.c to account for…
… the -fno-checkedc-extension argument
kakje committedJan 14, 2021 Configuration menu - View commit details
-
Copy full SHA for b223220 - Browse repository at this point
Copy the full SHA b223220View commit details
Commits on Jan 15, 2021
-
Fix failing 3c tests on Clang 11 update (#965)
* Use VisitUnaryOperator and VisitBinaryOperator VisitUnary* and VisitBin* * Add case for DesignatedInitExpr in getExprConstraintVars
Configuration menu - View commit details
-
Copy full SHA for 7a4a124 - Browse repository at this point
Copy the full SHA 7a4a124View commit details
Commits on Jan 18, 2021
-
Set the correct offset for ASTStmtReader::NumExprFields
For creating an empty DeclRefExpr, we need to pass NumTemplateArgs. This depends on the NumExprFields. In Checked C, we changed the NumExprFields from 5 to 7. But upstream has this field as 6. So we adjust this and change it to 8. (cherry picked from commit 9902f10)
Mandeep Singh Grang committedJan 18, 2021 Configuration menu - View commit details
-
Copy full SHA for 5209229 - Browse repository at this point
Copy the full SHA 5209229View commit details
Commits on Jan 19, 2021
-
Revert unintended CR/LF changes to non-3C files that originated in (#962
) 277d84a. We first submitted them in PR #837, but Mandeep noticed (#837 (review)) and the unintended changes were removed from that PR in 74bfcaf. However, when the squash of PR #837 was merged with the original commits in cfc998e, the unintended changes were incorrectly retained. They got submitted again in the next 3C PR (#891), and no one noticed that time. (cherry picked from commit cfe00ea)
Configuration menu - View commit details
-
Copy full SHA for 1122fff - Browse repository at this point
Copy the full SHA 1122fffView commit details
Commits on Jan 21, 2021
-
A tentative fix that resolves the remaining OpenMP failures (there we…
…re 9 of them). Needs to be reviewed.
1Configuration menu - View commit details
-
Copy full SHA for ed2b373 - Browse repository at this point
Copy the full SHA ed2b373View commit details
Commits on Jan 23, 2021
-
Pass MethodQualifiers argument to DeclaratorChunk::getFunction
Fixes the SemaOpenCLCXX/address-space-lambda.cl test. DeclaratorChunk::getFunction clears the attribute pool of its TheDeclarator argument if its MethodQualifiers argument is non-null. Previously, a call to getFunction from ParseLambdaExpressionAfterIntroducer was missing the MethodQualifiers argument. This caused the attributes of the declarator to be set incorrectly, which resulted in incorrect OpenCL address spaces for declarations involving lambda expressions.
kakje committedJan 23, 2021 Configuration menu - View commit details
-
Copy full SHA for c535c1b - Browse repository at this point
Copy the full SHA c535c1bView commit details
Commits on Jan 26, 2021
-
Add /bigobj flag to clang/unittests/Tooling/RefactoringTest.cpp
kakje committedJan 26, 2021 Configuration menu - View commit details
-
Copy full SHA for 99478b0 - Browse repository at this point
Copy the full SHA 99478b0View commit details
Commits on Jan 27, 2021
-
Merge branch 'master' of https://github.com/microsoft/checkedc-clang …
…into updated-master-11-last # Conflicts: # clang/lib/AST/CanonBounds.cpp # clang/test/CheckedC/inferred-bounds/compound-literals.c
kakje committedJan 27, 2021 Configuration menu - View commit details
-
Copy full SHA for a84f170 - Browse repository at this point
Copy the full SHA a84f170View commit details
Commits on Feb 2, 2021
-
[Needs review] Fix clang Syntax unit test: add CHKCBindTemporary synt…
…ax node Checked C binds string literals to temporaries. Add CHKCBindTemporaryExpression as a syntax node and add a separate Checked C case for the StringLiteral syntax test that expects a CHKCBindTemporary parent for StringLiteral expressions.
kakje committedFeb 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 15a3e92 - Browse repository at this point
Copy the full SHA 15a3e92View commit details -
[Needs review] Fix ASTMatchers clang unit test: add ignoringParenTmp …
…AST matcher Checked C binds string literals to temporaries. Add a matcher that ignores parens and temporary bindings on expressions and use the matcher in the IgnoringParens ASTMatcher test.
kakje committedFeb 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 5b67a18 - Browse repository at this point
Copy the full SHA 5b67a18View commit details
Commits on Feb 9, 2021
-
Fix for handling CapturedDecl which was causing the failure of some O…
…penMP test cases after upgrade.
Configuration menu - View commit details
-
Copy full SHA for 2afbfb5 - Browse repository at this point
Copy the full SHA 2afbfb5View commit details
Commits on Feb 10, 2021
-
Revert "Fix for handling CapturedDecl which was causing the failure o…
…f some OpenMP test cases after upgrade." This reverts commit 2afbfb5. Reverting this fix in order to resubmit these changes as a PR because it will be easier to incorporate review comments and other changes.
Configuration menu - View commit details
-
Copy full SHA for 67e8146 - Browse repository at this point
Copy the full SHA 67e8146View commit details
Commits on Feb 12, 2021
-
Frontend/ir-support.c test: add --strip-trailing-cr argument to diff
With Git Unix utilities and cygwin utilities, the grep tool does not strip carriage returns from files. When the diff tool compares the output of grep to another file in the ir-support.c test, the output of grep contains carriage returns while the other file does not. This does not occur when using GnuWin32 utilities. The --strip-trailing-cr argument causes diff to remove carriage returns from the input files before comparing them.
kakje committedFeb 12, 2021 Configuration menu - View commit details
-
Copy full SHA for c705ec7 - Browse repository at this point
Copy the full SHA c705ec7View commit details -
Merge branch 'updated-master-11-last' of https://github.com/microsoft…
…/checkedc-clang into updated-master-11-last
kakje committedFeb 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 774e32c - Browse repository at this point
Copy the full SHA 774e32cView commit details
Commits on Feb 13, 2021
-
Add reference section and registry for ignoringParenTmp AST matcher
(See commit 5b67a18 which added the ignoringParenTmp matcher)
kakje committedFeb 13, 2021 Configuration menu - View commit details
-
Copy full SHA for a9620f1 - Browse repository at this point
Copy the full SHA a9620f1View commit details
Commits on Feb 19, 2021
-
Fix for handling CapturedDecl, which was causing the failure of certa…
…in (#979) * Fix for handling CapturedDecl, which was causing the failure of certain OpenMP test case after upgrade. * Addressed review comments. * Addressed David's review comment about handling invalid source locations before calling CompareLoc. * Removed redundant "else". * Removed CompareLoc as this is not the best thing to use in ordering two CapturedDecls. An interim solution using pointer comparison is present, with a TODO for an improved ordering. * Minor fix.
Configuration menu - View commit details
-
Copy full SHA for 7e57978 - Browse repository at this point
Copy the full SHA 7e57978View commit details
Commits on Feb 20, 2021
-
Merge branch 'master' of https://github.com/microsoft/checkedc-clang …
…into updated-master-11-last
kakje committedFeb 20, 2021 Configuration menu - View commit details
-
Copy full SHA for a4d1ce7 - Browse repository at this point
Copy the full SHA a4d1ce7View commit details