Displaying 2 results from an estimated 2 matches for "clebsch".
2017 May 16
2
[IR question] Switching on pointers
...used in the
subtyping test to determine the real type of an object. The current
algorithm is suboptimal and we're trying out various alternatives. The
full details are on this github pull request:
https://github.com/ponylang/ponyc/pull/1752
One of the alternatives, described by Sylvan Clebsch in the 6th
message on the PR, would involve looking at whether the type
descriptor of an object with an abstract type is the same as one of
the subtypes of the abstract type being tested. Here's an equivalent C
code from the github PR:
bool SomeTraitTypeName__istype(pony_type_t* d...
2017 May 15
6
[IR question] Switching on pointers
Hi.
First of all, some context. I'm trying to implement a new
functionality in an LLVM-based compiler and I need to take various
actions based on the value of a given pointer, the possible values
being the addresses of various global constants. I tried to use a
`switch` instruction but I encountered several problems.
The "ideal switch" I'd like to have would look