-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[lldb] Implement WebAssembly debugging #76683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 4 commits
Commits
Show all changes
1109 commits
Select commit
Hold shift + click to select a range
c1d02bd
[mlir] Change end of OperationDefinition. (#77273)
jpienaar 5c9b713
[libc++][NFC] Fix typo in comments
ldionne 3358c77
[CMake] Deprecate GCC_INSTALL_PREFIX (#77537)
MaskRay e6c2952
[scudo] Condition variable can be disabled by setting the flag to off…
ChiaHungDuan 408dce8
[SLP]Do not require external uses for roots and single use for other …
alexey-bataev 51fbab1
[asan] Enable StackSafetyAnalysis by default
MaskRay e80b943
[clang][Interp] Fix discarded integral and floating casts (#77295)
tbaederr a1dc813
[mlir][mesh] fix unused variable error
cota 2dde029
[MLIR][Presburger] Implement computation of generating function for u…
Abhinav271828 0a1b066
[RISCV] Support isel for Zacas for XLen and i32. (#77666)
topperc 183eae0
[HLSL][Docs] Add documentation for HLSL functions (#75397)
llvm-beanz 1c34257
[LV] Use value_or to simplify code. NFC (#77030)
topperc 3378514
[RISCV] Use any_extend for type legalizing atomic_compare_swap with Z…
topperc fb7fe49
[CommandLine][NFCI] Do not add 'All' to 'RegisteredSubCommands' (#77041)
igorkudrin a08506e
[LLD] [MinGW] Add support for more ThinLTO specific options (#77387)
mstorsjo aec73ea
[mlir][sparse] allow unknown ops in one-shot bufferization in mini-pi…
aartbik e51fe95
[clang][NFC] Improve comments in C++ DR test suite (#77670)
Endilll 8ca07e5
[Flang][OpenMP][Offloading][Test] Adjust slightly incorrect tests now…
agozillon 98e3d98
[libc++] Rename local variable to avoid shadowing error (#77672)
cjdb 21a784f
[llvm-exegesis] Add tablegen support for validation counters (#76652)
boomanaiden154 04a906e
[llvm][lld] Support R_AARCH64_GOTPCREL32 (#72584)
PiJoules f7678c8
[llvm][lld] Support R_RISCV_GOT32_PCREL (#72587)
PiJoules f65265a
[llvm-exegesis] Fix validation counters
boomanaiden154 fefdef8
[Clang] Implement the 'counted_by' attribute (#76348)
bwendling 8ae8ae9
[llvm-exegesis] Update validation counters enum
boomanaiden154 4a3fb9c
[Clang] Update 'counted_by' documentation
bwendling 422b84a
[MLIR][LLVM] DI Expression Rewrite & Legalization (#77541)
zyx-billy 66981f9
[docs][IRPGO]Document two binary formats for instrumentation-based pr…
mingmingl-llvm 03be448
[RISCV][AMDGPU] Mark test/CodeGen/Generic/live-debug-label.ll XFAIL f…
mshockwave 753dc0a
[mlir][verifyMemref] Fix bug and support more types for verifyMemref …
yinying-lisa-li 66d022f
[clang][analyzer] Fix incorrect range of 'ftell' in the StdLibraryFun…
benshi001 31fd6d1
[mlir][mesh] fix ProcessMultiIndexOp building (#77676)
sogartar d85a13b
Revert "[CommandLine][NFCI] Do not add 'All' to 'RegisteredSubCommand…
igorkudrin 2dce772
Revert "[Clang] Implement the 'counted_by' attribute (#76348)"
nico 6d19e89
[Pass] Remove trailing whitespace in `PassRegistry.def` NFC (#77710)
paperchalice e0c7345
[libc++][test] Replace uses of `_LIBCPP_ABI_MICROSOFT` in tests (#77233)
cpplearner 5a66c8d
[Clang][doc] Add blank line before lists (#77573)
wangpc-pp 4eb68f5
[Instrumentation] Use a range-based for loop (NFC)
kazutakahirata 1bc4cb5
[X86][MC] Fix wrong action when encoding enqcmd/enqcmds (#77571)
XinWang10 cc77e33
[clang-format] Don't apply severe penalty if no possible column forma…
jamesg-nz b2c0c6f
[clang-format]: Split alignment of declarations around assignment (#6…
gedare 093e6bd
[clang-format] Fix crash involving array designators (#77045)
XDeme1 9ed3001
[mlir][arith][nfc] Fix typos (#77700)
Hardcode84 1fe7bdb
[X86][CodeGen] Support lowering for NDD ADD/SUB/ADC/SBB/OR/XOR/NEG/NO…
KanRobert 1e05236
[Target] Use isNullConstant (NFC)
kazutakahirata 12bba0d
[clang-query] Use StringRef::ltrim (NFC)
kazutakahirata be76f16
[Target] Use getConstantOperandAPInt (NFC)
kazutakahirata e879002
[RISCV] Allow vsetvlis with same register AVL in doLocalPostpass (#76…
lukel97 164f85d
[Clang] Implement the 'counted_by' attribute (#76348)
bwendling 3d795bd
[InstCombine] Handle a bitreverse idiom which ends with a bswap (#77677)
dtcxzyw 211abe3
[SelectionDAG] Add space-optimized forms of OPC_CheckComplexPat (#73310)
wangpc-pp 5c8d123
[SelectionDAG] Add space-optimized forms of OPC_CheckPatternPredicate…
wangpc-pp 1a57927
[SelectionDAG] Add space-optimized forms of OPC_CheckPredicate (#73488)
wangpc-pp 3643d11
[flang][hlfir] Support box in user defined assignments (#77578)
jeanPerier e3993e0
[clang][Interp] Implement __builtin_addressof (#77303)
tbaederr 79889fe
[RISCV] Deduplicate version struct in RISCVISAInfo. NFC (#77645)
lukel97 16945bc
[AMDGPU] Don't send DEALLOC_VGPRs after calls (#77439)
rovka c9c8f0c
[AMDGPU] Update tests for GFX12 errors and unsupported instructions (…
jayfoad 66eedd1
[InstCombine] Fix worklist management in select fold (#77738)
ParkHanbum 158d72d
[Clang] Set writable and dead_on_unwind attributes on sret arguments …
nikic d7642b2
[GlobalIsel] Combine select to integer minmax (second attempt). (#77520)
tschuett 9ef2ac3
[clangd] Handle lambda scopes inside Node::getDeclContext() (#76329)
zyn0217 ee43128
[NFC][OpenMP][Flang] Add smoke test for omp target parallel (#77579)
DominikAdamski 33e5db6
[clang] Improve colors in status tracking web pages.
cor3ntin 9d97247
[clang] Fix color consistency in C paper tracking web page
cor3ntin e034f20
[AArch64LoadStoreOptimizer] Debug messages to track decision making. …
sjoerdmeijer 7bf13fe
[DAG] Fold (sext (sext_inreg x)) -> (sext (trunc x)) if the trunc is …
RKSimon 75d820d
[AArch64] MI Scheduler: create more LDP/STP pairs (#77565)
sjoerdmeijer 77f2ccb
[STLExtras] Add out-of-line definition of friend operator== for C++20…
usx95 1ee93ac
[libc] Add memcmp / bcmp fuzzers (#77741)
gchatelet 1de3f46
Revert "[SLP]Do not require external uses for roots and single use fo…
mstorsjo 4b0314d
[clang][ASTImporter] Improve import of friend class templates. (#74627)
balazske a02c0d9
[DWARFLinker][NFC] Move common code into the base library: Utils.h (#…
avl-llvm 21aacb0
[mlir] Improve `GreedyPatternRewriteDriver` and pass documentation (#…
matthias-springer dc97457
[mlir][ArmSME][test] Make use of arm_sme.streaming_vl (NFC) (#77322)
MacDue bd2a6ef
[clang]not lookup name containing a dependent type (#77587)
HerrCai0907 9ca6e5b
[libc] Fix buggy AVX2 / AVX512 `memcmp` (#77081)
gchatelet 19081f4
[clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (…
benshi001 e4e0b65
[X86][test] Pre-commit test for #77731
KanRobert bbbe8ec
[GlobalISel][Localizer] Allow localization of a small number of repea…
aemerson bc98c31
Revert "[SelectionDAG] Add space-optimized forms of OPC_CheckPredicat…
metaflow cc53ec8
[Flang][Parser] Add missing dependencies to CMakeLists.txt (#77483)
kparzysz 959a430
[flang] FDATE extension implementation: get date and time in ctime fo…
yiwu0b11 5661242
[TOSA] FFT2D operator (#77005)
d-smirnov 5e40661
[sanitizer] Fix asserts in asan and tsan in pthread interceptors. (#7…
goussepi b7770be
[ClangFormat] Fix formatting bugs. (#76245)
r4nt 40d5c2b
[clang][AArch64] Add a -mbranch-protection option to enable GCS (#75486)
john-brawn-arm b120dae
[AMDGPU] Support GFX12 VDSDIR instructions WAITVMSRC operand in GCNHa…
jayfoad d553934
[AArch64] Add missing field 'GuardedControlStack' initializer (NFC)
DamonFool 9edcf7a
[flang][driver] Add support for -isysroot in the frontend (#77365)
luporl f1c88d7
[flang] Fix fveclib on Darwin (#77605)
luporl b6f9677
[clang][AArch64] Fix incorrect rebase (#77769)
john-brawn-arm f892cc3
[BranchFolding] Fix missing predecessors of landing-pad (#77608)
HaohaiWen 5261339
[InstrRef] Add debug hint for not reachable blocks from entry (#77725)
HaohaiWen 18798cf
[OpenMP] Add missing weak definitions of missing variables (#77767)
DominikAdamski d1ecd12
[IndVars] Add additional test for preserving NSW.
fhahn 21133f1
[TOSA] Fix -Wdangling-gsl and -Wunused-variable in TosaToLinalg.cpp (…
DamonFool 13b5882
[PowerPC] Add test for #77748 (NFC)
nikic ef4a95c
[AArch64] Enable certain instruction aliases for SVE/SME (#77745)
momchil-velikov dc717b1
[SLP][NFC]Add a test for final vector with minbitwidth, NFC.
alexey-bataev 26a8664
[MemProf] Handle missing tail call frames (#75823)
teresajohnson 18473eb
[SLP]Do not require external uses for roots and single use for other …
alexey-bataev 731b295
[flang] Handle missing LOGIN_NAME_MAX definition in runtime (#77775)
rorth 3b3ee1f
[RISCV] Add test for strided gather with disjoint or. NFC
lukel97 8f90e69
[runtimes] Use LLVM libunwind from libc++abi by default (#77687)
ldionne 5794854
[libc][NFC] Use 16-byte indices for _mmXXX_shuffle_epi8 (#77781)
gchatelet b6fc463
[SEH] Redirect test output to /dev/null (#77784)
HaohaiWen c37699b
[MemProf] Add missing <unordered_map> include to fix buildbot (#77788)
teresajohnson 31ce0f1
[flang][driver] Fix exec.f90 test with shared libs
luporl fc6faa1
[CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined …
dzhidzhoev 3867e66
[AMDGPU] Add new GFX12 image atomic float instructions (#76946)
mbrkusanin 90eb4e2
[AArch64] Fix missing `pfalse` diagnostic (#77746)
momchil-velikov 3b3da7c
[SLP] Add a set of tests with non-power-of-2 operations.
fhahn d21fb06
[lld][ELF] Allow Arm PC-relative relocations in PIC links (#77304)
eleanor-arm 923f039
[OpenACC] Implement 'copy' Clause
erichkeane 114e6d7
[RISCV] Add test for strided gather with recursive disjoint or. NFC
lukel97 3ede817
[Libomptarget] Fix JIT on the NVPTX target by calling ptx manually (#…
jhuber6 dd5ce45
[OpenACC] Implement 'use_device' clause parsing
erichkeane 4278d9b
[mlir][spirv] Lower `arith` overflow flags to corresponding SPIR-V op…
Hardcode84 ee45710
[lldb] Fix MaxSummaryLength target property type (#72233)
dancing-leaves f5dd70c
[LSR] Require non-zero step when considering wrap around for term fol…
preames c2fd5b7
[NFC] Remove trailing whitespace
llvm-beanz 21e1bf2
Add more ZA modes (#77361)
Leporacanthicus 061b777
[mlir][affine] Add dependency on `UBDialect` for `PoisonAttr` (#77691)
ubfx 4619e21
[mlir][memref] Transpose: allow affine map layouts in result, extend …
ubfx c3e3aa9
[AArch64][SVE2] Generate XAR (#77160)
UsmanNadeem 2bb511e
[BOLT][NFC] Print BAT section size (#76897)
aaupov 0cc3157
[clang-format] TableGen keywords support. (#77477)
hnakamura5 18734f6
[flang] Fix a warning
kazutakahirata cf3421d
[Format] Fix a warning
kazutakahirata fb09447
[flang] Fix a warning
kazutakahirata a7cf0a1
[BOLT] Add BOLT Address Translation documentation (#76899)
aaupov 565f40d
[BOLT] Encode BAT using ULEB128 (#76899)
aaupov 3e82663
[Dialect] Fix a warning
kazutakahirata e7f7948
Revert "[asan] Enable StackSafetyAnalysis by default"
ZequanWu 75efddb
[ASan][libc++] Initialize `__r_` variable with lambda (#77394)
37c1a5e
[Libomptarget] Fix GPU Dtors referencing possibly deallocated image (…
jhuber6 40f5f90
[mlir][openacc][flang] Simplify gang, vector and worker representatio…
clementval d447304
Revert "[Flang][Parser] Add missing dependencies to CMakeLists.txt (#…
kparzysz bdfe5d6
[flang][openacc] Apply mutually exclusive clauses restriction to rout…
clementval 5ce067d
Revert "[LSR][TTI][RISCV] Disable terminator folding for RISC-V."
preames 69bc30b
[Fuchsia] Add stage2 cmake options
mysterymath 8b61fc7
Add sync-up for floating-point working group (#71885)
238b579
[flang][openacc] Do not accept static and num for gang clause on rout…
clementval a6d4017
[StackSafetyAnalysis] Bail out if MemIntrinsic length is -1 (#77837)
MaskRay c8ad802
[flang][openacc] Carry device dependent info for routine in the modul…
clementval 7740565
[asan] Enable StackSafetyAnalysis by default
MaskRay b3981ed
[libc++] Re-export libc++abi symbols on Apple platforms when using sy…
bbe0798
[BOLT] Delta-encode offsets in BAT (#76900)
aaupov 8fb8ad6
[BOLT] Delta-encode function start addresses in BAT (#76902)
aaupov 3513267
[mlir] Add op printing flag to skip regions (#77726)
kuhar b58f91a
Set the default value for MaxAtomicSizeInBitsSupported to 0.
jyknight 649b391
Revert "[mlir][spirv] Lower `arith` overflow flags to corresponding S…
Hardcode84 5afc4f3
Revert "[mlir][arith][nfc] Fix typos (#77700)"
Hardcode84 5f59b72
Revert "[mlir][arith] Add overflow flags support to arith ops (#77211)"
Hardcode84 721dd3b
[analyzer] NFC: Don't regenerate duplicate HTML reports.
haoNoQ 93b4705
[compiler-rt][fuchsia] Preallocate a vmar for sanitizer internals (#7…
PiJoules 4cee0e3
[LLD] Fix llvm-driver cmake integration for LLD (#76305)
aganea 3c6f47d
[llvm-driver] Fix usage of `InitLLVM` on Windows (#76306)
aganea dc61ebb
[clang] Mark clang-format-ignore.cpp as unsupported on Windows
nico ae1c1ed
[CodeGen] Allow `CodeGenPassBuilder` to add module pass after functio…
paperchalice 22bc74e
[gn build] Port ae1c1ed6af8d
llvmgnsyncbot f626b1f
[clang][FatLTO][UnifiedLTO] Pass -enable-matrix to the LTO driver
ormris 8e9c531
[llvm-ifs] Treat unknown symbol types as error. (#75872)
zeroomega 3ef20e3
[CMake][Release] Add option for enabling LTO to cache file (#77035)
tstellar f33e927
github-automation: Use the llvm/llvm-project repo for backport pull r…
tstellar ab02372
[OpenMP] Fix or disable NVPTX tests failing currently (#77844)
jhuber6 17c062c
[CodeGen] Make CodeGenPassBuilder Pipeline test x86-64 only (#77860)
paperchalice 791637e
[clang-format] Don't allow casts in front of ampamp (#77704)
rymiel 9095eec
[X86][CodeGen] Support EVEX compression: NDD to nonNDD (#77731)
KanRobert 6a0c440
[Driver,sanitizer] Remove RequiresPIE and msan's NeedPIE setting (#77…
MaskRay 3f03231
[CodeGen] Fix ponential memory leak in CodeGenPassBuilderTest (#77864)
paperchalice c185a66
[SelectionDAG,TableGen] Use stable_sort after #73310
MaskRay 5e5e98e
AMDGPU: Cleanup MAIFrag predicate code (#77734)
arsenm c230138
[SelectionDAG,TableGen] Use MapVector after #73310
MaskRay d1d1e7d
[NFC] Updating the tests for combine-ext.mir (#77756)
dfszabo 9e40ba0
[RISCV] Remove period from Zvbb extension description.
topperc a2af374
[SelectionDAG] Add space-optimized forms of OPC_CheckPredicate (#77763)
wangpc-pp 54c1954
[GlobalISel] Revise 'assignCustomValue' interface (#77824)
darkbuck 3baedb4
[GISel] Fix #77762: extend correct source registers in combiner helpe…
widlarizer cc0065a
[builtins] Generate __multc3 for z/OS (#77554)
perry-ca 6752f15
[TwoAddressInstruction] Recompute live intervals for partial defs (#7…
perlfu 4f71068
[X86] Correct the asm comment for compression NF_ND -> NF
KanRobert c39926e
[MLIR][Presburger] Fix style violations in ff80414 (NFC) (#76720)
iambrj 3699811
[AMDGPU] Handle bf16 operands the same way as f16. NFC. (#77826)
rampitec aa2a96a
[mlir][TilingInterface] Move TilingInterface tests to use transform d…
MaheshRavishankar dc4e85b
[C++20] [Modules] Remove hardcoded path to imported module in BMIs
ChuanqiXu9 1833e3f
Fix test failure introduced in 3baedb411121c188c4bb07f47efb755bf4d4cf87
aemerson 4b99af3
[docs] Update doc for C++20 Modules after dc4e85b
ChuanqiXu9 a946934
[GlobalISel][NFC] Use GPhi wrapper in more places instead of iteratin…
aemerson bfb026e
[StaticAnalyzer] Use StringRef::contains_insensitive (NFC)
kazutakahirata 5e9da33
[llvm] Use StringRef::consume_front_insensitive (NFC)
kazutakahirata 7b9bc47
[IPO] Use a range-based for loop (NFC)
kazutakahirata d7ab65f
Revert "[builtins] Generate __multc3 for z/OS" (#77881)
vitalybuka 528cd28
[mlir][Bazel] Adjust BUILD file for aa2a96a24ae3a8cc04635ab6ede474c5f…
akuegel 2b83cee
[AMDGPU][GFX12] Default component broadcast store (#76212)
mariusz-sikora-at-amd a5dc3f6
[llvm] Use SmallString::operator std::string() (NFC)
kazutakahirata 7e60448
[test] Improve x86 inline asm tests
MaskRay 2e78c22
[RISCV] Simplify the description for ssaia and smaia. (#77870)
topperc 2491867
[mlir][nvgpu] Improve verifier of `ldmatrix` (#77807)
grypp c297597
[mlir] Fix linking failure of libMLIRTilingInterfaceTestPasses.dylib …
DamonFool f489fb3
[clangd] Fix sysroot flag handling in CommandMangler to prevent dupli…
kon72 dabc901
[clangd] Use starts_with instead of startswith in CompileCommands.cpp…
DamonFool 537bbb4
[clang][dataflow] Process terminator condition within `transferCFGBlo…
martinboehme ef156f9
[clang][dataflow] Remove unused private field 'StmtToEnv' (NFC)
DamonFool c65b939
[clang-format] SpacesInSquareBrackets not working for Java (#77833)
mydeveloperday 011ba72
[flang] finish BIND(C) VALUE derived type passing ABI on X86-64 (#77742)
jeanPerier 1aacdfe
Revert "[clang][dataflow] Process terminator condition within `transf…
martinboehme 0a8e3dd
[mlir][Interfaces] `DestinationStyleOpInterface`: Rename `hasTensor/B…
matthias-springer 3168192
[ObjC]: Make type encoding safe in symbol names (#77797)
qmfrederik 9c9bffe
[AArch64] Disable FP loads/stores when fp-armv8 not enabled (#77817)
ostannard fbac3b0
Revert "[clang][dataflow] Remove unused private field 'StmtToEnv' (NFC)"
DamonFool a8f83cc
[AArch64][SME] Fix multi vector cvt builtins (#77656)
MDevereau 42fe3bc
[AArch64][SME2] Fix SME2 mla/mls tests (#76711)
MDevereau 2adbf25
[AMDGPU][NFC] Rename DotIUVOP3PMods to VOP3PModsNeg (#77785)
mbrkusanin 4d46721
[Clang] Revert inintentional changes to cmake committed in 33e5db6e0
cor3ntin 35c19fd
[mlir][vector] Support warp distribution of `transfer_read` with depe…
matthias-springer a762cc2
[flang] include sys/wait.h for EXECUTE_COMMAND_LINE (#77675)
dankm c87e94b
[flang] Get ProvenanceRange from CharBlock starting with expanded mac…
jeanPerier 2798b72
[mlir] introduce debug transform dialect extension (#77595)
ftynse 35708b0
[DWARFLinker][NFC] Rename libraries to match with directories name. (…
avl-llvm aa2dc79
[mlir][vector] Fix rewrite pattern API violation in `VectorToSCF` (#7…
matthias-springer 39b2104
[SLP]Fix a crash for reduced values with minbitwidth, which are reused.
alexey-bataev 59d6f03
[VPlan] Support narrowing widened loads in truncateToMinimimalBitwidths.
fhahn ae5d639
[mlir][nvvm] Introduce `cp.async.bulk.wait_group` (#77917)
grypp 6c2fbc3
[IRBuilder] Add CreatePtrAdd() method (NFC) (#77582)
nikic b32001a
[mlir] update bazel for transform debug extension
ftynse 39bb790
[SimplifyCFG] `switch`: Do Not Transform the Default Case if the Cond…
qiongsiwu 4556813
[Sema] Use lexical DC for friend functions when getting constraint in…
antangelo 460ff58
[clang] Reapply Handle templated operators with reversed arguments (#…
usx95 ad100b3
[mlir][vector] Fix dominance error in warp vector distribution (#77771)
matthias-springer 7700ea1
[OpenACC] Implement the 'rest' of the simple 'var-list' clauses
erichkeane dec908a
[mlir][Transforms] `GreedyPatternRewriteDriver`: log successful foldi…
matthias-springer 8751bbe
[libc++] Deprecate the _LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS…
ldionne 5417a5f
[mlir][ArmSME] Add rudimentary support for tile spills to the stack (…
MacDue d199ab4
[LLVM][DWARF] Fix accelerator table switching between CU and TU (#77511)
ayermolo 2aae304
[InstCombine] Fold `icmp pred (inttoptr X), (inttoptr Y) -> icmp pred…
dtcxzyw 4f47372
[SPIR-V] Add Float16 support when targeting Vulkan (#77115)
sudonatalie 4210eb1
Revert "[flang] Fix a warning"
DavidSpickett 5dbf178
[TLI][NFC] Fix ordering of ArmPL and SLEEF tests (#77609)
mgabka 6fdc2ce
[SLP]Fix PR77916: transform the whole mask, not only the elements for
alexey-bataev eaa4b6c
[mlir][bufferization] Clone simplify fails when input and result type…
cxy-1993 61b4609
Remove needless code
paolosevMSFT 9fdc568
[TLI] Fix replace-with-veclib crash with invalid arguments (#77112)
paschalis-mpeis 28ffc90
[lldb] Implement WebAssembly debugging
paolosevMSFT eac5cd1
Minor refactoring
paolosevMSFT 63c4504
Refactor class WasmVirtualRegisterInfo
paolosevMSFT dc1943a
Remove needless code
paolosevMSFT fa61cdc
Fix formatting
paolosevMSFT 0bfc624
Merge branch 'WebAssembly2024' of https://github.com/paolosevMSFT/llv…
paolosevMSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -346,6 +346,17 @@ static offset_t GetOpcodeDataSize(const DataExtractor &data, | |
| return (offset - data_offset) + subexpr_len; | ||
| } | ||
|
|
||
| case DW_OP_WASM_location: { | ||
| uint8_t wasm_op = data.GetU8(&offset); | ||
| if (wasm_op == 3) { | ||
| data.GetU32(&offset); | ||
| } | ||
| else { | ||
| data.GetULEB128(&offset); | ||
| } | ||
| return offset - data_offset; | ||
| } | ||
|
|
||
| default: | ||
| if (!dwarf_cu) { | ||
| return LLDB_INVALID_OFFSET; | ||
|
|
@@ -2595,6 +2606,37 @@ bool DWARFExpression::Evaluate( | |
| break; | ||
| } | ||
|
|
||
| case DW_OP_WASM_location: { | ||
| uint8_t wasm_op = opcodes.GetU8(&offset); | ||
| uint32_t index; | ||
|
|
||
| /* LLDB doesn't have an address space to represents WebAssembly Locals, | ||
| * GLobals and operand stacks. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| * We encode these elements into virtual registers: | ||
| * | tag: 2 bits | index: 30 bits | | ||
| * where tag is: | ||
| * 0: Not a WebAssembly location | ||
| * 1: Local | ||
| * 2: Global | ||
| * 3: Operand stack value | ||
| */ | ||
| if (wasm_op == 3) { | ||
| index = opcodes.GetU32(&offset); | ||
| wasm_op = 1; | ||
| } else { | ||
| index = opcodes.GetULEB128(&offset); | ||
| } | ||
|
|
||
| reg_num = (((wasm_op + 1) & 0x03) << 30) | (index & 0x3fffffff); | ||
|
|
||
| if (ReadRegisterValueAsScalar(reg_ctx, reg_kind, reg_num, error_ptr, tmp)) | ||
| stack.push_back(tmp); | ||
| else | ||
| return false; | ||
|
|
||
| break; | ||
| } | ||
|
|
||
| default: | ||
| if (dwarf_cu) { | ||
| if (dwarf_cu->GetSymbolFileDWARF().ParseVendorDWARFOpcode( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # This file comes from https://reviews.llvm.org/D78978. | ||
| # Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). | ||
|
|
||
|
Comment on lines
+1
to
+3
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this |
||
| add_lldb_library(lldbPluginProcessWasm PLUGIN | ||
| ProcessWasm.cpp | ||
| ThreadWasm.cpp | ||
| UnwindWasm.cpp | ||
| wasmRegisterContext.cpp | ||
|
|
||
| LINK_LIBS | ||
| lldbCore | ||
| ${LLDB_PLUGINS} | ||
| LINK_COMPONENTS | ||
| Support | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Locals/locals/