Commit graph

2475 commits

Author SHA1 Message Date
Dennis
ea9ead9cae
Improve opBinary error messages (#20789) 2025-01-28 06:23:30 +08:00
Walter Bright
2ca7960029
implement cdpopcnt for AArch64 (#20787) 2025-01-27 22:33:15 +08:00
Dennis
b289b6a6dc
Refactor use of Loc/SourceLoc (#20785) 2025-01-26 14:06:14 +01:00
Walter Bright
b2c9da1337 add more instructions to INSTR 2025-01-26 11:56:14 +01:00
Dennis
0ce59518ed
Reduce size of StructLiteralExp (#20779) 2025-01-25 22:56:11 +01:00
Dennis
756e2153d8
Fix astbase.d deprecation warnings (#20778) 2025-01-26 05:42:01 +08:00
Walter Bright
128d56dd04
disassembler addv instruction (#20776) 2025-01-25 19:29:48 +08:00
Walter Bright
ab76473eb7
disassemble cnt, fmov and uaddlv (#20775) 2025-01-25 13:31:37 +08:00
Dennis
8fafb9c8bb
Remove BinExp.att fields (#20774) 2025-01-25 05:35:13 +08:00
Dennis
e576b8b38d
backend: remove unused C++ enums (#20773) 2025-01-25 05:34:29 +08:00
Dennis
cb31f45e15
Remove references to D1 opDot (#20772) 2025-01-24 12:00:29 +01:00
Dennis
e5bd2d06aa
Rename Id.index to Id.opIndex etc. (#20771) 2025-01-24 11:31:25 +01:00
Dennis
3166ce1646
opover.d: deduplicate tryAliasThisForLhs and checkAliasThisForLhs (#20766) 2025-01-23 23:53:21 +01:00
Dennis
be6a7bb529
Fix #20730 - print SymOff with unsigned offset (#20769) 2025-01-24 06:13:11 +08:00
Dennis
5f47410afc
opover.d: simplify opOverloadAssign and search_function (#20765) 2025-01-24 05:52:29 +08:00
Dennis
1a9848a5c3
Fix rebase of checkArithmetic (#20767) 2025-01-23 16:45:58 +01:00
Dennis
864b5747e6
Move Expression.checkXXX functions to expressionsem.d (#20764) 2025-01-23 21:48:47 +08:00
Dennis Korpel
279f3054bf Short-circuit checkArithmeticBin when lhs is an error 2025-01-23 20:59:30 +08:00
Dennis Korpel
8358e6d33f Move AddExp type check from typeCombine to expressionSemantic 2025-01-23 20:59:30 +08:00
Dennis
81fce27bed
Deduplicate binary overload function selection (#20759) 2025-01-23 15:41:38 +08:00
Walter Bright
91fb90932b
some reorganizing of instruction patterns (#20761) 2025-01-23 15:24:13 +08:00
Dennis
94b6c3223d
Perform binSemanticProp in opOverloadBinary (#20757) 2025-01-23 00:36:31 +01:00
Dennis
a12022b676
Remove redundant BinExp semantic type check (#20755) 2025-01-23 06:34:15 +08:00
Dennis
9d9056b717
Separate visit() functions from op_overload (#20754)
* Separate visit() functions from op_overload
2025-01-22 15:25:13 +01:00
Nicholas Wilson
c3510723c2
[expressionsem.d] factorise some commonalities of BinExp semantic (#17013)
* [expressionsem.d] factorise some commonalities of BinExp semantic

* Fix missing ModExp vector check

---------

Co-authored-by: Dennis Korpel <dkorpel@gmail.com>
2025-01-22 10:49:01 +01:00
Dennis
096c9c1528
Make delete an identifier instead of keyword (#20745) 2025-01-21 23:33:50 +01:00
Dennis
f60fc38312
opover.d: Separate and simplify BinExp/AssignExp cases (#20750) 2025-01-21 23:09:44 +01:00
Dennis
67f9847622
Move class __cmp lowering to opover.d (#20749)
* Move class __cmp lowering to opover.d

* Use early returns in opover.visitCmp

---------

Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-22 05:05:48 +08:00
0-v-0
71213dfbf8
Remove redundant else (#20751) 2025-01-22 05:03:42 +08:00
Dennis
ff2543f768
opover.d: remove goto, reduce indentation (#20748) 2025-01-21 13:24:16 +01:00
Dennis
f05ccbd0e7
Remove class allocator parsing (#20747) 2025-01-21 19:32:51 +08:00
Dennis
6493805d0a
Remove more D1 operator code (#20746) 2025-01-21 10:27:23 +01:00
Dennis
fc2b2271a6
Remove D1 operators from the D2 language (#20744) 2025-01-21 06:08:05 +08:00
Dennis
2a627016f6
Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
Andrey Penechko
ec7c24bb72
Add test cases for static arrays initialization with hex string (#20738) 2025-01-19 21:13:58 +08:00
Iain Buclaw
283b5f6fea
dcast: Don't pass format string over varargs (#20732) 2025-01-18 22:38:03 +01:00
Iain Buclaw
8061aa84c1
Don't reference DMD-specific flags when IN_GCC (#20731) 2025-01-18 22:37:35 +01:00
Dennis
670a6c153c
backend: Replace C pointer syntax with D (#20726) 2025-01-18 08:08:53 +08:00
Dennis
971a1d6943
backend: Make BC a D enum (#20724)
* backend: Make BC a D enum

* Fix default initialization of BC to be 0
2025-01-17 15:20:56 +01:00
Dennis
803db11017
Re-enable tests of temporary in condition and throwing callee (#20721) 2025-01-16 23:35:13 +01:00
Dennis Korpel
a78abc4328 Improve error locations when lexing number literals 2025-01-16 22:05:21 +01:00
Dennis Korpel
924ba452eb backend: Make FL a D enum 2025-01-16 22:04:25 +01:00
0-v-0
a847aa321b
Remove redundant else (#20717) 2025-01-16 17:48:00 +01:00
Dennis Korpel
8783066576 Use variadic arguments for AttributeViolation format string 2025-01-16 15:34:13 +01:00
Dennis
709e07df52
Store messages directly in AttributeViolation (#20714) 2025-01-16 15:24:12 +08:00
Dennis
888917669c
Remove debug() / version() integers (#20713) 2025-01-16 15:20:06 +08:00
Dennis
c0315897f6
Fix format string injection in safe errors (#20712) 2025-01-16 01:42:17 +01:00
Dennis
20090aba96
Make inferred attribute failure errors more compact and consistent (#20711) 2025-01-16 01:42:05 +01:00
Dennis
3daeb3a33d
Improve diff based AUTO_UPDATE (#20703)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-15 23:25:32 +01:00
Dennis
1c2b6e3541
Add fieldwise to Previews (#20708) 2025-01-15 23:13:56 +01:00