[Lldb-commits] [lldb] [lldb] Add some vector operations to the IRInterpreter (PR #155000)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 22 11:15:27 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD lldb/test/API/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestVectorTypesFormatting.py 2025-08-22 18:08:34.000000 +0000
+++ TestVectorTypesFormatting.py 2025-08-22 18:15:03.143433 +0000
@@ -69,20 +69,23 @@
)
self.expect(
f"expr{jit_flag} -f uint128_t[] -- v",
substrs=["(85236745249553456609335044694184296448)"],
)
- self.expect(f"expr{jit_flag} -f float32[] -- v", substrs=["(1.25, 1.25, 2.5, 2.5)"])
+ self.expect(
+ f"expr{jit_flag} -f float32[] -- v", substrs=["(1.25, 1.25, 2.5, 2.5)"]
+ )
self.expect(f"expr{jit_flag} -- f4", substrs=["(1.25, 1.25, 2.5, 2.5)"])
self.expect(f"expr{jit_flag} -- float4(0)", substrs=["(0, 0, 0, 0)"])
self.expect(f"expr{jit_flag} -- float4(1)", substrs=["(1, 1, 1, 1)"])
- self.expect(f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}",
- substrs=["(0.1, 0.2, 0.3, 0.4)"])
- self.expect(f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}[0]",
- substrs=["0.1"])
+ self.expect(
+ f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}",
+ substrs=["(0.1, 0.2, 0.3, 0.4)"],
+ )
+ self.expect(f"expr{jit_flag} -- float4{0.1, 0.2, 0.3, 0.4}[0]", substrs=["0.1"])
oldValue = v.GetChildAtIndex(0).GetValue()
v.SetFormat(lldb.eFormatHex)
newValue = v.GetChildAtIndex(0).GetValue()
self.assertNotEqual(
``````````
</details>
https://github.com/llvm/llvm-project/pull/155000
More information about the lldb-commits
mailing list