diff options
| author | Madhav Madhusoodanan <madhavmadhusoodanan@gmail.com> | 2025-08-05 13:14:39 +0530 |
|---|---|---|
| committer | Madhav Madhusoodanan <madhavmadhusoodanan@gmail.com> | 2025-08-05 13:21:47 +0530 |
| commit | 76dce27325207bdefbbdc1e76dab0605fbdc4294 (patch) | |
| tree | e4d6a2fd816ec549c71e9aa9ba97e3d915ea06f6 /library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs | |
| parent | daa742afe5970109c1e15b391226f78087b10439 (diff) | |
| download | rust-76dce27325207bdefbbdc1e76dab0605fbdc4294.tar.gz rust-76dce27325207bdefbbdc1e76dab0605fbdc4294.zip | |
feat: cleaned the IntrinsicType struct and associated functions.
Changes: 1. Removed `from_c` from the IntrinsicType definition. 2. Moved the `from_c` arm-specific definition to an ArmIntrinsicType-specific impl block
Diffstat (limited to 'library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs')
| -rw-r--r-- | library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs index b53047b2d38..f5e84ca97af 100644 --- a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs +++ b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs @@ -120,8 +120,6 @@ pub struct IntrinsicType { /// rows encoded in the type (e.g. uint8x8_t). /// A value of `None` can be assumed to be 1 though. pub vec_len: Option<u32>, - - pub target: String, } impl IntrinsicType { @@ -321,11 +319,6 @@ pub trait IntrinsicTypeDefinition: Deref<Target = IntrinsicType> { /// can be implemented in an `impl` block fn get_lane_function(&self) -> String; - /// can be implemented in an `impl` block - fn from_c(_s: &str, _target: &str) -> Result<Self, String> - where - Self: Sized; - /// Gets a string containing the typename for this type in C format. /// can be directly defined in `impl` blocks fn c_type(&self) -> String; |
