Esempio n. 1
0
        public UnaryOpDelegate FindUnaryOpIntrinsic(UnaryOpKey key, bool checkDependencies = true)
        {
            var result = UnaryOpIntrinsics.GetValueOrDefault(key, null);

            if (result == null && mDependencies != null)
            {
                foreach (var dependency in mDependencies)
                {
                    result = dependency.FindUnaryOpIntrinsic(key, checkDependencies);
                    if (result != null)
                    {
                        break;
                    }
                }
            }
            return(result);
        }
Esempio n. 2
0
 //---------------------------------------------------------------UnaryOpIntrinsics
 public void CreateUnaryOpIntrinsic(UnaryOpKey key, UnaryOpDelegate intrinsic)
 {
     UnaryOpIntrinsics.TryAdd(key, intrinsic);
 }