mirror of https://github.com/zachjs/sv2v.git
reduce cost of unsigned type conversion
This commit is contained in:
parent
4ec99fcffd
commit
8cc828c77f
|
|
@ -74,6 +74,7 @@ finalPhases _ =
|
||||||
, Convert.EmptyArgs.convert
|
, Convert.EmptyArgs.convert
|
||||||
, Convert.FuncRet.convert
|
, Convert.FuncRet.convert
|
||||||
, Convert.TFBlock.convert
|
, Convert.TFBlock.convert
|
||||||
|
, Convert.Unsigned.convert
|
||||||
, Convert.StringType.convert
|
, Convert.StringType.convert
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -96,7 +97,6 @@ mainPhases tops selectExclude =
|
||||||
, Convert.Struct.convert
|
, Convert.Struct.convert
|
||||||
, Convert.Typedef.convert
|
, Convert.Typedef.convert
|
||||||
, Convert.UnpackedArray.convert
|
, Convert.UnpackedArray.convert
|
||||||
, Convert.Unsigned.convert
|
|
||||||
, Convert.Wildcard.convert
|
, Convert.Wildcard.convert
|
||||||
, Convert.Enum.convert
|
, Convert.Enum.convert
|
||||||
, Convert.StringParam.convert
|
, Convert.StringParam.convert
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@ convert =
|
||||||
map $
|
map $
|
||||||
traverseDescriptions $
|
traverseDescriptions $
|
||||||
traverseModuleItems $
|
traverseModuleItems $
|
||||||
traverseTypes $ traverseNestedTypes convertType
|
-- doesn't need to visit nested types, as they have been elaborated
|
||||||
|
traverseTypes convertType
|
||||||
|
|
||||||
convertType :: Type -> Type
|
convertType :: Type -> Type
|
||||||
convertType (Implicit Unsigned rs) = Implicit Unspecified rs
|
convertType (Implicit Unsigned rs) = Implicit Unspecified rs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue