diff options
author | Erik Schnetter <schnetter@gmail.com> | 2011-09-28 11:05:59 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-09-29 20:57:10 +0200 |
commit | c05d20c3934b4525cba12bb53847352b434711d6 (patch) | |
tree | 51a4ce00e1c9aabe319711f730604df7ecb694dc /Tools | |
parent | 00cdecf2af8014e127a266348a3adc89a8b893b0 (diff) |
CodeGen.m: Add StorePartialVariableInLoop
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/CodeGen/CodeGen.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/CodeGen/CodeGen.m b/Tools/CodeGen/CodeGen.m index 6365cf3..29a42cc 100644 --- a/Tools/CodeGen/CodeGen.m +++ b/Tools/CodeGen/CodeGen.m @@ -71,6 +71,8 @@ StoreHighPartialVariableInLoop::usage = "StoreHighPartialVariableInLoop[dest_, s "that assigns 'src' to 'dest'."; StoreMiddlePartialVariableInLoop::usage = "StoreMiddlePartialVariableInLoop[dest_, src_, countLow_, countHigh_] returns a block of code " <> "that assigns 'src' to 'dest'."; +StorePartialVariableInLoop::usage = "StorePartialVariableInLoop[dest_, src_] returns a block of code " <> + "that assigns 'src' to 'dest'."; DeclareAssignVariableInLoop::usage = "DeclareAssignVariableInLoop[type_, dest_, src_] returns a block of code " <> "that assigns 'src' to 'dest'."; MaybeAssignVariableInLoop::usage = "MaybeAssignVariableInLoop[dest_, src_, cond_] returns a block of code " <> @@ -334,6 +336,9 @@ StoreHighPartialVariableInLoop[dest_, src_, count_] := StoreMiddlePartialVariableInLoop[dest_, src_, countLow_, countHigh_] := {"vec_store_nta_partial_mid(", dest, ",", src, ",", countLow, ",", countHigh, ")", EOL[]}; +StorePartialVariableInLoop[dest_, src_] := + {"vec_store_nta_partial(", dest, ",", src, ")", EOL[]}; + DeclareAssignVariableInLoop[type_, dest_, src_] := {type, " const ", dest, " = vec_load(", src, ")", EOL[]}; |