OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 84 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().

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

+ Here is the caller graph for this function:

bool is_pointer_type ( const Type  type)

Definition at line 98 of file ResultSetReductionInterpreterStubs.cpp.

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

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

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

+ Here is the caller graph for this function: