Skip to content

Commit

Permalink
Minor cleanup for the NumCIL template system
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkendk committed Apr 29, 2015
1 parent f2a60b6 commit 16ae5ca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,6 @@ benchmark/CIL/Csharp/reactiondiffusion/obj
bridge/NumCIL/NumCIL.Unsafe/ApplyBinary.cs
bridge/NumCIL/NumCIL.Unsafe/ApplyNullary.cs
bridge/NumCIL/NumCIL.Unsafe/ApplyUnary.cs
bridge/NumCIL/NumCIL/UFunc/TypedApplyBinary.cs
bridge/NumCIL/NumCIL/UFunc/TypedApplyNullary.cs
bridge/NumCIL/NumCIL/UFunc/TypedApplyUnary.cs
3 changes: 3 additions & 0 deletions bridge/NumCIL/NumCIL/UFunc/Apply.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ namespace NumCIL
{
public static partial class UFunc
{
/// <summary>
/// Lookup table for generic methods that have been created and are ready for use
/// </summary>
private static Dictionary<string, System.Reflection.MethodInfo> _resolvedMethods = new Dictionary<string, System.Reflection.MethodInfo>();

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions bridge/NumCIL/NumCIL/UFunc/TypedApplyBinary.tt
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ foreach(string fulltypename in new string[] {"Ta", "System.SByte", "System.Byte"
if ((fulltypename == "System.Single" || fulltypename == "System.Double") && (opname == "And" || opname == "Or" || opname == "Xor"))
continue;

//string opstruct = string.Format("new NumCIL.{0}.{1}()", typename, opname);
//string opparamttype = "NumCIL.Generic.Operators.I" + opname;
string opparamttype = string.Format("NumCIL.{0}.{1}", typename, opname);
string fulltypename_out = fulltypename;

Expand All @@ -103,7 +101,6 @@ foreach(string fulltypename in new string[] {"Ta", "System.SByte", "System.Byte"
continue;

fulltypename_out = "Tb";
//opstruct = "opparam";
opparamttype = "C";
}
else if (fulltypename == "Ta")
Expand Down
3 changes: 0 additions & 3 deletions bridge/NumCIL/NumCIL/UFunc/TypedApplyNullary.tt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ foreach(string fulltypename in new string[] {"T", "System.SByte", "System.Byte",
}


//string opstruct = string.Format("new NumCIL.Generic.{0}{1}()", opname, typename);
//string opparamttype = string.Format("NumCIL.Generic.I{0}<{1}>", opname, fulltypename);
string opparamttype = string.Format("NumCIL.Generic.{0}{1}", opname, typename);

if (opname == "RangeGeneratorOp")
Expand All @@ -84,7 +82,6 @@ foreach(string fulltypename in new string[] {"T", "System.SByte", "System.Byte",
if (fulltypename != "T")
continue;

//opstruct = "opparam";
opparamttype = "C";
}
else if (fulltypename == "T")
Expand Down

0 comments on commit 16ae5ca

Please sign in to comment.