-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
194 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class InactiveOp<string dialect_, string opName_> { | ||
string dialect = dialect_; | ||
string opName = opName_; | ||
} | ||
|
||
class MLIRDerivative<string dialect_, string opName_, dag patternToMatch, list<dag> resultOps> { | ||
string dialect = dialect_; | ||
string opName = opName_; | ||
dag PatternToMatch = patternToMatch; | ||
list<dag> ArgDerivatives = resultOps; | ||
} | ||
|
||
class Operation<bit usesPrimal_, bit usesShadow_, bit usesCustom_=0> { | ||
bit usesPrimal = usesPrimal_; | ||
bit usesShadow = usesShadow_; | ||
bit usesCustom = usesCustom_; | ||
} | ||
|
||
class DiffeRetIndex<list<int> indices_> { | ||
list<int> indices = indices_; | ||
} | ||
def DiffeRet : DiffeRetIndex<[-1]>; | ||
|
||
class Inst<string mnemonic, string dialect_> : Operation</*primal*/1, /*shadow*/0> { | ||
string name = mnemonic; | ||
string dialect = dialect_; | ||
} | ||
|
||
def Op { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
include "Common.td" | ||
|
||
def : InactiveOp<"LLVM", "SIToFPOp">; | ||
def : InactiveOp<"LLVM", "UIToFPOp">; | ||
def : InactiveOp<"LLVM", "FPToSIOp">; | ||
def : InactiveOp<"LLVM", "FPToUIOp">; | ||
def : InactiveOp<"LLVM", "AssumeOp">; | ||
def : InactiveOp<"LLVM", "StackSaveOp">; | ||
def : InactiveOp<"LLVM", "StackRestoreOp">; | ||
def : InactiveOp<"LLVM", "LifetimeStartOp">; | ||
def : InactiveOp<"LLVM", "LifetimeEndOp">; | ||
def : InactiveOp<"LLVM", "Prefetch">; | ||
def : InactiveOp<"LLVM", "MemsetOp">; | ||
|
||
def : InactiveOp<"LLVM", "UndefOp">; | ||
def : InactiveOp<"LLVM", "ConstantOp">; | ||
def : InactiveOp<"LLVM", "UnreachableOp">; |
Oops, something went wrong.