Bug 16560 – [Mir] Prefetch intrinsics like in LDC

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-09-28T08:52:00Z
Last change time
2017-01-07T03:02:19Z
Keywords
performance, pull
Assigned to
nobody
Creator
ilyayaroshenko

Comments

Comment #0 by ilyayaroshenko — 2016-09-28T08:52:15Z
Comment #1 by bugzilla — 2016-10-08T23:52:19Z
Link to documentation on the LDC prefetch intrisics please?
Comment #2 by bugzilla — 2016-10-09T00:48:24Z
Comment #3 by bugzilla — 2016-10-09T01:07:25Z
Comment #4 by ilyayaroshenko — 2016-10-09T04:48:48Z
Copy-past from GitHub Wow, that was fast! Nitpicks: LLVM parameter is missing. This is not used now, but likely be used in the future. For example intel CPU has non shared L1 / L2 caches. If GDC BE has not this feature, it can just ignore it. Only __prefetch should be presented, and it would be nice to have it as a part of the language instead of DRuntime hack. Making it a function breaks final fastmath optimization for LDC. So, only real intrinsics should be provided for user without any function shells. Underscored __names looks good to me. Also this will help to BetterC mode. A clean API without encodings is required for __prefetch in context of (2).
Comment #5 by bugzilla — 2016-10-09T09:52:57Z
Comment #6 by github-bugzilla — 2016-10-10T18:23:59Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/09e3fdd31d53fcb96a787a6a9de466a7c1f72ac1 fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC https://github.com/dlang/dmd/commit/0fc8be57bb0107a718ac2dabd1b5482c1ebe89ef Merge pull request #6188 from WalterBright/fix16560 fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC
Comment #7 by github-bugzilla — 2016-11-04T09:05:27Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/09e3fdd31d53fcb96a787a6a9de466a7c1f72ac1 fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC https://github.com/dlang/dmd/commit/0fc8be57bb0107a718ac2dabd1b5482c1ebe89ef Merge pull request #6188 from WalterBright/fix16560
Comment #8 by github-bugzilla — 2017-01-07T03:02:19Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/09e3fdd31d53fcb96a787a6a9de466a7c1f72ac1 fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC https://github.com/dlang/dmd/commit/0fc8be57bb0107a718ac2dabd1b5482c1ebe89ef Merge pull request #6188 from WalterBright/fix16560