Skip to content

Conversation

@naricc
Copy link
Contributor

@naricc naricc commented Jan 26, 2021

Implements AdvSimd.Abs intrinsic on arm64 with LLVM.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 26, 2021
@naricc naricc changed the title Implemented Arm64 Abs intrinsic [Mono][LLVM][ARM] Implemented Arm64 Abs intrinsic Jan 26, 2021
@naricc naricc removed the request for review from CoffeeFlux January 26, 2021 19:03
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole function looks like the work to define signatures for intrinsics could be done via macros in llvm-intrinsics.h instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have macros to do this type of thing, or were you suggesting I create some? I would have think think a little about how to do it; this function predates my changes and would need some reworking.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I mean in general, if you want to eventually implement the full set of intrinsics it makes sense to minimize verbosity of the changes.

@naricc naricc force-pushed the naricc/arm-simd-intrinsics branch from 23828a7 to 5c4dd0d Compare January 27, 2021 17:23
@naricc naricc requested a review from kunalspathak January 27, 2021 19:49
Copy link
Contributor

@kunalspathak kunalspathak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. So this is the first AdvSimd.Arm64 API that is being supported in mono?

@naricc
Copy link
Contributor Author

naricc commented Jan 27, 2021

@kunalspathak

LGTM. So this is the first AdvSimd.Arm64 API that is being supported in mono?

Yes. I am working on implement more; the issue listing them all is here: #42266

@kunalspathak
Copy link
Contributor

Yes. I am working on implement more; the issue listing them all is here: #42266

Got it. I have added a reference to the documentation that I worked few months back to explain what every AdvSimd.Arm64 intrinsic API does. In case it is helpful to you or anyone working on this feature.

https://kunalspathak.github.io/tags/#intrinsics

@naricc naricc merged commit f638a75 into dotnet:master Jan 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants