diff options
| author | Jack | 2016-05-10 01:38:20 -0700 |
|---|---|---|
| committer | Jack Koenig | 2016-06-10 16:43:06 -0700 |
| commit | f162263c05643c0851c5200fff2fc356f97843cd (patch) | |
| tree | e5d49ea105d189320439aa2f1b0b9ab6ec98b603 /src/main/scala/firrtl/PrimOps.scala | |
| parent | 58d9f1d50c07d999776c76259fadbdfd52c564fc (diff) | |
API Cleanup - AST
trait AST -> abstract class FirrtlNode
Move all IR to new package ir
Add import of firrtl.ir._
Diffstat (limited to 'src/main/scala/firrtl/PrimOps.scala')
| -rw-r--r-- | src/main/scala/firrtl/PrimOps.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/PrimOps.scala b/src/main/scala/firrtl/PrimOps.scala index 5efa1b7d..c90260a3 100644 --- a/src/main/scala/firrtl/PrimOps.scala +++ b/src/main/scala/firrtl/PrimOps.scala @@ -27,9 +27,11 @@ MODIFICATIONS. package firrtl +import firrtl.ir._ + import com.typesafe.scalalogging.LazyLogging -/** Definitions and Utility functions for [[PrimOp]]s */ +/** Definitions and Utility functions for [[ir.PrimOp]]s */ object PrimOps extends LazyLogging { /** Addition */ case object Add extends PrimOp { override def toString = "add" } @@ -101,9 +103,9 @@ object PrimOps extends LazyLogging { Dshl, Dshr, Neg, Cvt, Not, And, Or, Xor, Andr, Orr, Xorr, Cat, Bits, Head, Tail) private lazy val strToPrimOp: Map[String, PrimOp] = builtinPrimOps map (op => op.toString -> op) toMap - /** Seq of String representations of [[PrimOp]]s */ + /** Seq of String representations of [[ir.PrimOp]]s */ lazy val listing: Seq[String] = builtinPrimOps map (_.toString) - /** Gets the corresponding [[PrimOp]] from its String representation */ + /** Gets the corresponding [[ir.PrimOp]] from its String representation */ def fromString(op: String): PrimOp = strToPrimOp(op) // Borrowed from Stanza implementation |
