- Nov 16, 2022
-
-
Aart Bik authored
Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D138071
-
Paul Kirth authored
This reverts commit 2b8917f8. This breaks with lld and gold
-
Yeting Kuo authored
The patch also added function expandVPBSWAP to expand ISD::VP_BSWAP nodes. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D137928
-
Craig Topper authored
-
George Hu authored
Differential Revision: https://reviews.llvm.org/D138077
-
Mahesh Ravishankar authored
Currently CSE does not support CSE of ops with regions. This patch extends the CSE support to ops with a single region. Differential Revision: https://reviews.llvm.org/D134306 Depends on D137857
-
Luo, Yuanke authored
AMX shape should be defined before AMX intrinsics. However for below case, the shape a.row is defined after tile load of b. If we transform `load b` to `@llvm.x86.tileloadd64 intrinsic`, the shape dependency doesn't meet. ``` void test_tile_dpbsud(__tile1024i a, __tile1024i b, __tile1024i c) { __tile_dpbsud(&c, a, b); } ``` This patch is to store the tile b to stack and reloaded it after the def of b.row. It would cause redundant store/load, but it is simple to avoid generating invalid IR. The better way may hoist `def b.row` before tile load instruction, but it seems more complicated to recursively hoist its operands. Differential Revision: https://reviews.llvm.org/D137923 -
wangpc authored
We may form a zero-stride vector load when lowering gather to strided load. As what D137699 has done, we use `load+splat` for this form if there is no optimized implementation. We restrict this to unmasked loads currently in consideration of the complexity of hanlding all falses masks. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D137931
-
Craig Topper authored
We don't need LMUL=8 versions of these. Reviewed By: michaelmaitland Differential Revision: https://reviews.llvm.org/D137439
-
Han-Kuan Chen authored
Current getDefaultVLOps can only deduce VL from a MVT. However, sometimes users have already known VL value. This commit will provide a uniform interface to get VL instead of calling DAG.getConstant. Differential Revision: https://reviews.llvm.org/D138003
-
Qiu Chaofan authored
Direct-move instructions are usually more efficient than load then store for conversion. But direct moves are not needed when the source register was just loaded from some address. The pattern has already been recognized, but the source value of strict nodes are not the first (that's the chain), but the second. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D138011
-
Michael Maitland authored
This reverts commit b88b8307.
-
wren romano authored
This is a reposting of D137737, which got reverted when D137735 did. There are no changes other than rebasing. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138000
-
Michael Maitland authored
On x86 and AArch, SIMD instructions encode all of the scheduling information in the instruction itself. For example, VADD.I16 q0, q1, q2 is a neon instruction that operates on 16-bit integer elements stored in 128-bit Q registers, which leads to eight 16-bit lanes in parallel. This kind of information impacts how the instruction takes to execute and what dependencies this may cause. On RISCV however, the data that impacts scheduling is encoded in CSR registers such as vtype or vl, in addition with the instruction itself. But MCA does not track or use the data in these registers. This patch fixes this problem by introducing Instruments into MCA. * Replace `CodeRegions` with `AnalysisRegions` * Add `Instrument` and `InstrumentManager` * Add `InstrumentRegions` * Add RISCV Instrument and `InstrumentManager` * Parse `Instruments` in driver * Use instruments to override schedule class * RISCV use lmul instrument to override schedule class * Fix unit tests to pass empty instruments * Add -ignore-im clopt to disable this change A prior version of this patch was commited in. It was reverted in 5e82ee53. 2323a4ee reverted that change because the unit test files caused build errors. This commit adds the original changes and the fixed test files. Differential Revision: https://reviews.llvm.org/D137440
-
River Riddle authored
This allows for ensuring that alignment requirements on translation inputs are satisfied. Differential Revision: https://reviews.llvm.org/D137999
-
Akira Hatanaka authored
ExtVectorElementExpr This fixes a bug where an lvalue ExtVectorElementExpr was created when the base expression was an ObjC property dot operator. This reverts 220d08d9. Differential Revision: https://reviews.llvm.org/D138058
-
Arthur Eubanks authored
Followup to D134378. With PrintingPolicy::SuppressScope, we'd also not print the scope in template params. The intention was only to skip the scope for the class because we expect template params to be fully qualified when comparing them for simple template names. Instead, use `NamedDecl::getNameForDiagnostic` if we're dealing with a tag, which is what we actually use when emitting debug info in clang. That already has an option to suppress the scope on the base name. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D137583
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138074
-
Benjamin Kramer authored
-
Raman Tenneti authored
+ Avoid the `clockid` var and just passed `long(CLOCK_REALTIME)` to the syscall. Reviewed By: rtenneti Differential Revision: https://reviews.llvm.org/D138070
-
Wanyi Ye authored
This patch will gather debug info & breakpoint info from the statistics dump (from `(SBTarget.GetStatistics())` func) and send to DAP in terminated event. The statistics content can be huge (especially the `modules`) and dumping in full JSON can create delay in the IDE's debugging UI. (For more details, please read: https://github.com/llvm/llvm-project/commit/7bbd0fba986c241162b77b7e424ad82bc7e17b41 ). Hence, we will filter out large contents before returning it in terminated event. It will keep all the metadata fields (those starts with "total"). For large contents, it uses the opt-out strategy. Currently it only removes the "modules" field. This way every time a new top-level field being added, we will be able to capture them from DAP log without changing lldb-vscode. The DAP terminated event should look like ``` { "event":"terminated", "seq":0, "statistics": { "memory": <JSON string> "targets": <JSON string>, // it's a JSON array, breakpoints info included in each target <metadata_key: value> // pairs }, "type":"event" } ``` All the info above will be append to statistics field in the terminated event Test Plan Debugged a simple hello world program from VSCode. Exit debug session in two ways: 1) run to program exit; 2) user initiated debug session end (quit debugging before program exit). Check DAP log and see both debug sessions have statistics returned in terminated event. Here's an example when debugging the test program: ``` {"event":"terminated","seq":0,"statistics":{"memory":"{\"strings\":{\"bytesTotal\":1843200,\"bytesUnused\":897741,\"bytesUsed\":945459}}","targets":"[{\"breakpoints\":[{\"details\":{\"Breakpoint\":{\"BKPTOptions\":{\"AutoContinue\":false,\"ConditionText\":\"\",\"EnabledState\":true,\"IgnoreCount\":0,\"OneShotState\":false},\"BKPTResolver\":{\"Options\":{\"NameMask\":[56],\"Offset\":0,\"SkipPrologue\":true,\"SymbolNames\":[\"foo\"]},\"Type\":\"SymbolName\"},\"Hardware\":false,\"Names\":[\"vscode\"],\"SearchFilter\":{\"Options\":{},\"Type\":\"Unconstrained\"}}},\"id\":1,\"internal\":false,\"numLocations\":1,\"numResolvedLocations\":1,\"resolveTime\":0.002232},{\"details\":{\"Breakpoint\":{\"BKPTOptions\":{\"AutoContinue\":false,\"ConditionText\":\"\",\"EnabledState\":true,\"IgnoreCount\":0,\"OneShotState\":false},\"BKPTResolver\":{\"Options\":{\"Column\":0,\"Exact\":false,\"FileName\":\"/data/users/wanyi/llvm-sand/external/llvm-project/lldb/test/API/tools/lldb-vscode/terminated-event/main.cpp\",\"Inlines\":true,\"LineNumber\":5,\"Offset\":0,\"SkipPrologue\":true},\"Type\":\"FileAndLine\"},\"Hardware\":false,\"Names\":[\"vscode\"],\"SearchFilter\":{\"Options\":{},\"Type\":\"Unconstrained\"}}},\"id\":2,\"internal\":false,\"numLocations\":0,\"numResolvedLocations\":0,\"resolveTime\":0.23203799999999999},{\"details\":{\"Breakpoint\":{\"BKPTOptions\":{\"AutoContinue\":false,\"ConditionText\":\"\",\"EnabledState\":true,\"IgnoreCount\":0,\"OneShotState\":false},\"BKPTResolver\":{\"Options\":{\"Language\":\"c\",\"NameMask\":[4,4,4,4,4,4],\"Offset\":0,\"SkipPrologue\":false,\"SymbolNames\":[\"_dl_debug_state\",\"rtld_db_dlactivity\",\"__dl_rtld_db_dlactivity\",\"r_debug_state\",\"_r_debug_state\",\"_rtld_debug_state\"]},\"Type\":\"SymbolName\"},\"Hardware\":false,\"SearchFilter\":{\"Options\":{\"ModuleList\":[\"/usr/lib64/ld-2.28.so\"]},\"Type\":\"Modules\"}}},\"id\":-1,\"internal\":true,\"kindDescription\":\"shared-library-event\",\"numLocations\":1,\"numResolvedLocations\":1,\"resolveTime\":0.00026699999999999998}],\"expressionEvaluation\":{\"failures\":0,\"successes\":0},\"firstStopTime\":0.087458974999999994,\"frameVariable\":{\"failures\":0,\"successes\":0},\"launchOrAttachTime\":0.052953161999999998,\"moduleIdentifiers\":[94554748126576,94554747837792,94554747149216,139800112130176,139800112161056,139800112206064,139800112340224,139800112509552,139800112236528],\"signals\":[{\"SIGSTOP\":1}],\"sourceMapDeduceCount\":0,\"stopCount\":8,\"targetCreateTime\":0.00057700000000000004,\"totalBreakpointResolveTime\":0.234537}]","totalDebugInfoByteSize":1668056,"totalDebugInfoEnabled":3,"totalDebugInfoIndexLoadedFromCache":0,"totalDebugInfoIndexSavedToCache":0,"totalDebugInfoIndexTime":0.027963000000000002,"totalDebugInfoParseTime":0.34354800000000002,"totalModuleCount":10,"totalModuleCountHasDebugInfo":3,"totalSymbolTableIndexTime":0.056050000000000003,"totalSymbolTableParseTime":0.23930000000000001,"totalSymbolTableStripped":0,"totalSymbolTablesLoadedFromCache":0,"totalSymbolTablesSavedToCache":0},"type":"event"} ``` Differential Revision: https://reviews.llvm.org/D137665
-
Michael Jones authored
The mprotect test has been failing and causing significant buildbot noise. Given that this is a simple functions it's more important that the buildbot errors be useful than having more thorough tests for this function. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D138061
-
Aart Bik authored
Following advise from https://llvm.org/docs/ProgrammersManual.html#llvm-adt-smallvector-h This revision removes the size hints from SmallVector (unless we are certain of the resulting number of elements). Also, this replaces SmallVector references with SmallVectorImpl references. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D138063
-
Raman Tenneti authored
+ Deleted duplicate definitions of StructTimeVal and StructTimeValPtr. + Caled syscall clock_gettime to get timespec data. + Added tests to test for sleeping 200 and 1000 microseconds. + Fixed comments from https://reviews.llvm.org/D137881 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D138064
-
Amir Ayupov authored
googletest was moved to third-party. Update path in BOLT's CMakeCache. Reviewed By: #bolt, maksfb Differential Revision: https://reviews.llvm.org/D138066
-
eopXD authored
According to report by @JojoR, the assertion error was hit hence we need to have this check before the actual transformation. Reviewed By: Meinersbur, #loopoptwg Differential Revision: https://reviews.llvm.org/D136415
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
bixia1 authored
Fix a problem in convert op rewriting where it used the original index for ToIndicesOp. Extend the concatenate op rewriting to handle dense destination and dynamic shape destination. Make the concatenate op integration test run on the codegen path. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D138057
-
Jason Molenda authored
Rosetta 2 is not installed by default in a fresh macOS installation on Apple Silicon, so x86 binaries cannot be run. CI bots are often in this state. Update this test to check for the rosetta debugserver, which our debugserver also hardcodes the path of, before trying to run an x86 process on AS systems.
-
Akira Hatanaka authored
Look through parentheses when determining whether the expression is a @selector expression.
-
eopXD authored
This change would allow extension of new categories be aware of adding more code here. This patch also updates the comments, which was originally missing the vector predicate. Reviewed By: mikerice Differential Revision: https://reviews.llvm.org/D137570
-
Craig Topper authored
[TargetLowering][RISCV][ARM][AArch64][Mips] Reduce the number of AND mask constants used by BSWAP expansion. We can reuse constants if we use SRL followed by AND and AND followed by SHL. Similar was done to bitreverse previously. Differential Revision: https://reviews.llvm.org/D138045
-
Arthur Eubanks authored
As part of legacy PM optimization pipeline removal. This shouldn't be used in codegen pipelines so it should be ok to remove. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D137116
-
Jason Molenda authored
A fresh install of macOS does not have Rosetta 2 installed by default; the CI bots are often in this state, resulting in a test failure. debugserver already hardcodes the filepath of the Rosetta 2 debugserver; test if that file exists before running the Rosetta test.
-
Arthur Eubanks authored
And a possible opt invocation plus a link to more extensive documentation. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D136617
-
Med Ismail Bennani authored
This patch changes app_specific_backtrace_crashlog.test's crashlog file extension from `ips` to `txt. This should prevent the test from opening Console.app when being run. This should also fix a test failure caused by missing symbols. Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-
Philip Reames authored
-
Ben Langmuir authored
Instead of checking all the paths, just ensure the one we care about is correct. On a particular platform one of the paths seems to have been more canonical than we were expecting, which is fine.
-
Dhruva Chakrabarti authored
[OpenMP] [OMPT] [2/8] Implemented a connector for communication of OMPT callbacks between libraries. This is part of a set of patches implementing OMPT target callback support and has been split out of the originally submitted https://reviews.llvm.org/D113728. The overall design can be found in https://rice.app.box.com/s/pf3gix2hs4d4o1aatwir1set05xmjljc The purpose of this patch is to provide a way to register tool-provided callbacks into libomp when libomptarget is loaded. Introduced a cmake variable LIBOMPTARGET_OMPT_SUPPORT that can be used to control OMPT target support. It follows host OMPT support, controlled by LIBOMP_HAVE_OMPT_SUPPORT. Added a connector that can be used to communicate between OMPT implementations in libomp and libomptarget or libomptarget and a plugin. Added a global constructor in libomptarget that uses the connector to force registration of tool-provided callbacks in libomp. A pair of init and fini functions are provided to libomp as part of the connect process which will be used to register the tool-provided callbacks in libomptarget. Patch from John Mellor-Crummey <johnmc@rice.edu> (With contributions from Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>) Reviewed By: dreachem, jhuber6 Differential Revision: https://reviews.llvm.org/D123572
-