Skip to content

Commit bd0a675

Browse files
Feat: Moved majority of the code to arm module.
Reasoning: 1. Majority of code assumes the usage of `Intrinsic` and related types, which is derived from the JSON structure of the ARM intrinsics JSON source file 2. Further commits will start with extracting common parts of the code (eg: Create C/Rust file, Build C/Rust file, etc)
1 parent 5ef22a7 commit bd0a675

File tree

10 files changed

+687
-682
lines changed

10 files changed

+687
-682
lines changed

crates/intrinsic-test/src/argument.rs crates/intrinsic-test/src/arm/argument.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::ops::Range;
22

3-
use crate::Language;
4-
use crate::format::Indentation;
5-
use crate::json_parser::ArgPrep;
6-
use crate::types::{IntrinsicType, TypeKind};
3+
use super::format::Indentation;
4+
use super::json_parser::ArgPrep;
5+
use super::types::{IntrinsicType, TypeKind};
6+
use crate::common::types::Language;
77

88
/// An argument for the intrinsic.
99
#[derive(Debug, PartialEq, Clone)]
File renamed without changes.

crates/intrinsic-test/src/intrinsic.rs crates/intrinsic-test/src/arm/intrinsic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::format::Indentation;
2-
use crate::types::{IntrinsicType, TypeKind};
1+
use super::format::Indentation;
2+
use super::types::{IntrinsicType, TypeKind};
33

44
use super::argument::ArgumentList;
55

crates/intrinsic-test/src/json_parser.rs crates/intrinsic-test/src/arm/json_parser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use std::path::Path;
33

44
use serde::Deserialize;
55

6-
use crate::argument::{Argument, ArgumentList};
7-
use crate::intrinsic::Intrinsic;
8-
use crate::types::IntrinsicType;
6+
use super::argument::{Argument, ArgumentList};
7+
use super::intrinsic::Intrinsic;
8+
use super::types::IntrinsicType;
99

1010
#[derive(Deserialize, Debug)]
1111
#[serde(deny_unknown_fields)]

0 commit comments

Comments
 (0)