1

I have a simple scalar instruction which I added to LLVM, which takes two inputs from GPR and writes the output also to GPR. I can compile C code using inline assembly for the new instruction. I would like to add it as an intrinsic.

something like:

int a, b,c; a= _myinstruction(b,c); // in C

so that LLVM will produce assembly with my instruction myinstruction a0,a1,a2 I looked into intrinsics for vector extension but they include many parameters such as SEW, LMUL, tale type I would like something simpler

Does someone know how to add a simple intrinsic to LLVM?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.