[dylan-lang/opendylan] 9b16ef: Add read-cycle-counter, read-return-address primit...

GitHub <[email protected]> Fri, 08 Apr 2016 07:30:06 -0700
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <5707c06e11aba_5b363f7f50f2b2a0690fb@hookshot-fe1-cp1-prd.iad.github.net.mail>
----==_mimepart_5707c06e11669_5b363f7f50f2b2a0689c5
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: 9b16ef940cd021c432e9ec64a5569063606db7f5
      https://github.com/dylan-lang/opendylan/commit/9b16ef940cd021c432e9ec64a5569063606db7f5
  Author: Bruce Mitchener <[email protected]>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M documentation/hacker-guide/source/runtime/primitives.rst
    M documentation/release-notes/source/2016.1.rst
    M sources/dfmc/c-back-end/c-primitives.dylan
    M sources/dfmc/harp-cg/harp-primitives.dylan
    M sources/dfmc/llvm-back-end/llvm-primitives-basic.dylan
    M sources/dfmc/modeling/namespaces.dylan
    M sources/dfmc/modeling/primitives.dylan
    M sources/lib/run-time/run-time.h

  Log Message:
  -----------
  Add read-cycle-counter, read-return-address primitives.

These are useful for event logging, profiling and other low level activities.

* sources/dfmc/c-back-end/c-primitives.dylan: Add new primitives to comments.

* sources/dfmc/harp-cg/harp-primitives.dylan
  (op--read-cycle-counter, op--read-return-address): Stubs that return 0.
  (primitive-read-cycle-counter, primitive-read-return-address): Use emitter stubs.

* sources/dfmc/llvm-back-end/llvm-primitives-basic.dylan
  (primitive-read-cycle-counter, primitive-read-return-address): Implement using
   LLVM intrinsics.

* sources/dfmc/modeling/namespaces.dylan
  (&module dylan-primitives): Export new primitives.

* sources/dfmc/modeling/primitives.dylan
  (primitive-read-cycle-counter, primitive-read-return-address): Define new primitives.

* sources/lib/run-time/run-time.h
  (primitive_read_cycle_counter, primitive_read_return_address): Implement for
   Clang and GCC. Reading cycle counter with GCC is only supported on x86 and
   x86_64.

* documentation/hacker-guide/source/runtime/primitives.rst: Document new primitives.

* documentation/release-notes/source/2016.1.rst: Update release notes.


  Commit: d833adae4e560dab50d7509cabac40ddb784bc05
      https://github.com/dylan-lang/opendylan/commit/d833adae4e560dab50d7509cabac40ddb784bc05
  Author: Peter S. Housel <[email protected]>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M documentation/hacker-guide/source/runtime/primitives.rst
    M documentation/release-notes/source/2016.1.rst
    M sources/dfmc/c-back-end/c-primitives.dylan
    M sources/dfmc/harp-cg/harp-primitives.dylan
    M sources/dfmc/llvm-back-end/llvm-primitives-basic.dylan
    M sources/dfmc/modeling/namespaces.dylan
    M sources/dfmc/modeling/primitives.dylan
    M sources/lib/run-time/run-time.h

  Log Message:
  -----------
  Merge pull request #1057 from waywardmonkeys/read-cycle-counter

Add read-cycle-counter, read-return-address primitives.


Compare: https://github.com/dylan-lang/opendylan/compare/01a5ce3fb8dc...d833adae4e56
----==_mimepart_5707c06e11669_5b363f7f50f2b2a0689c5
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
----==_mimepart_5707c06e11669_5b363f7f50f2b2a0689c5--