OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ResultSetReductionInterpreterStubs.h File Reference
+ Include dependency graph for ResultSetReductionInterpreterStubs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StubGenerator
 

Functions

bool is_integer_type (const Type type)
 
bool is_pointer_type (const Type type)
 

Function Documentation

bool is_integer_type ( const Type  type)

Definition at line 87 of file ResultSetReductionInterpreterStubs.cpp.

References Int1, Int32, Int64, and Int8.

Referenced by StubGenerator::generateStub(), ReductionInterpreterImpl::runAlloca(), ReductionInterpreterImpl::runBinaryOperator(), ReductionInterpreterImpl::runCast(), ReductionInterpreterImpl::runFor(), ReductionInterpreterImpl::runICmp(), and ReductionInterpreterImpl::runMemCpy().

87  {
88  switch (type) {
89  case Type::Int1:
90  case Type::Int8:
91  case Type::Int32:
92  case Type::Int64: {
93  return true;
94  }
95  default: {
96  return false;
97  }
98  }
99 }

+ Here is the caller graph for this function:

bool is_pointer_type ( const Type  type)

Definition at line 101 of file ResultSetReductionInterpreterStubs.cpp.

References DoublePtr, FloatPtr, Int32Ptr, Int64Ptr, Int64PtrPtr, Int8Ptr, and VoidPtr.

Referenced by StubGenerator::generateStub(), ReductionInterpreterImpl::runCast(), ReductionInterpreterImpl::runLoad(), and ReductionInterpreterImpl::runMemCpy().

101  {
102  switch (type) {
103  case Type::Int8Ptr:
104  case Type::Int32Ptr:
105  case Type::Int64Ptr:
106  case Type::FloatPtr:
107  case Type::DoublePtr:
108  case Type::VoidPtr:
109  case Type::Int64PtrPtr: {
110  return true;
111  }
112  default: {
113  return false;
114  }
115  }
116 }

+ Here is the caller graph for this function: