Comments (4)
Hi KaunLin,
In order to keep consistent of naming in the same category instructions, there are some exceptions in generic functions naming.
For example, in your case, we can not use generic function vmsbc
for vmsbc_vvm
and vmsbc_vx
due to they have different number of arguments, but we can use generic function vadc
for vadc_vvm
and vadc_vxm
.
You can also note that load/store functions also does not have generic version, unit stride load without mask can not be generic but mask type can be, so we decide all load and store does not support generic function.
But in RFC we never discuss about generic function naming rule, do you have any suggestion?
ps. I found a bug in function list, in the same category, vector integer move functions have no generic for vmv_v_x_i8m1
but vmv_v_v
have, I'm so sorry to confuse you.
Thanks.
from rvv-intrinsic-doc.
This issue is about the vadc
and vsbc
intrinsic functions, both of which still keep the _vvm
and _vxm
suffix in the C11 generic function list even though they can clearly be overloaded under the same name.
For vmadc
and vmsbc
, I think it is understandable that the _vvm
and _vv
versions cannot be overloaded together as they have different number of arguments (although it is actually possible with some preprocessor hackery).
I agree the RFC should be expanded to describe the rules of overloading and name shortening, as well as explaining any exceptions to these rules. Functions like load/store and vmv_v_x
are good examples why they shouldn't or can't be overloaded.
from rvv-intrinsic-doc.
I understand why vadc
keep its suffix now.
As I know, GCC can implement TARGET_RESOLVE_OVERLOADED_BUILTIN
and Clang can use
overloadable
to overload functions with different number of arguments. Maybe we'll have non-suffix vadc
and vmadc
in the future.
I agree with PkmX that RFC should describe more details about naming rule. Preferably keep the rule consistent and easy to remember. Although there are always exceptions in rules. lol. Thanks.
from rvv-intrinsic-doc.
I provide the exceptional cases for C11 generic interface in https://github.com/riscv/rvv-intrinsic-doc/blob/master/rvv-intrinsic-rfc.md#c11-generic-interface.
How about we provide C11 generic interface for vadc/vsbc and treat vmadc/vmsbc as exceptions?
from rvv-intrinsic-doc.
Related Issues (20)
- [Requirement]: The RISC-V RVV vector intrinsic must include support for vector groups in the __riscv_vfredosum function HOT 4
- Type-relative overloads for vreinterpret, vlmul_ext, vlmul_trunc, etc. HOT 1
- How to use a class to wrap or derive from a sizeless vector type HOT 1
- Encode all the effects of vsetvl in the return type, for use in subsequent type deductions HOT 1
- Does `__riscv_v_intrinsic >= 1000000` imply overloaded intrinsics are supported?
- Create bibliography from reference section HOT 3
- Simple questions about inline assembly in vmv.x.s instruction HOT 2
- Asterisks are not subscripts
- the wrong result of "vmerge_vvm_i32m1" HOT 5
- ta,ma reduction destination with vl=0 HOT 1
- Clarify the consequences of vxsat not being handled by the intrinsics HOT 3
- Add a section with examples HOT 3
- Rename uses of {implicit,explicit}-frm into {Implicit, Explicit} FP rounding mode HOT 1
- Clarify the mapping of pseudo-intrinsics
- Clarify what float and double means HOT 1
- Fix authors in the document
- How to use LMUL in rvv-intrinsic? HOT 6
- Mismatched bfloat16 autogenerated files HOT 3
- Freeze the specification HOT 1
- `vfirst` and `vcpop` return types unexpectedly changed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvv-intrinsic-doc.