search for: numval

Displaying 6 results from an estimated 6 matches for "numval".

2008 Aug 13
2
[LLVMdev] Cleanup of constant sequence type construction
...l convenience methods. I would like to change the interfaces to each support four construction methods: (a) With and without a type. (b) With a vector or an array + size. Here: -- ConstantStruct { static Constant *get(const StructType *T, Constant*const* Vals, unsigned NumVals, bool Packed = false); static Constant *get(const StructType *T, const std::vector<Constant*> &V); static Constant *get(Constant*const* Vals, unsigned NumVals, bool Packed = false); static Constant *get(const std::vector<Constant*&g...
2011 Aug 12
1
sapply to bind columns, with repeat?
...- rep(c("day","hr","met","dat","fl1","fl2"), 62) rep.count <- rep(c(1:62), each=6, 1) names(coop.dat) <- c("rect", "id", "elem", "unt", "year", "mo", "fill", "numval", paste(rep.name, rep.count, sep="_")) I would like to generate output that contains in one row, the columns "id", "elem", "unt", "year", "mo", and "numval". Binded to these initial columns, I would like only "day_1&qu...
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
...:get(Ty, V); } /// GetArray - return a constant array given an array type and a POD /// array of elements. static Constant *GetArray( const ArrayType *Ty, ///< The type of the array Constant *const *Vals, ///< The elements of the array unsigned NumVals) { ///< The length of the array return ConstantArray::get(Ty, Vals, NumVals); } /// GetArray - return a constant array given an array type and an /// iterator pair template<typename RandomAccessIterator> static Constant *GetArray( const ArrayType *Ty,...
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...s [0-255] if it is an unknown character, otherwise one // of these for known things. enum Token { tok_eof = -1, // commands tok_def = -2, tok_extern = -3, // primary tok_identifier = -4, tok_number = -5, }; static std::string IdentifierStr; // Filled in if tok_identifier static double NumVal; // Filled in if tok_number /// gettok - Return the next token from standard input. static int gettok() { static int LastChar = ' '; // Skip any whitespace. while (isspace(LastChar)) LastChar = getchar(); if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...t; // of these for known things. > enum Token { > tok_eof = -1, > > // commands > tok_def = -2, tok_extern = -3, > > // primary > tok_identifier = -4, tok_number = -5, > }; > > static std::string IdentifierStr; // Filled in if tok_identifier > static double NumVal; // Filled in if tok_number > > /// gettok - Return the next token from standard input. > static int gettok() { > static int LastChar = ' '; > > // Skip any whitespace. > while (isspace(LastChar)) > LastChar = getchar(); > > if (isalpha(Last...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...oken { >>  tok_eof = -1, >> >>  // commands >>  tok_def = -2, tok_extern = -3, >> >>  // primary >>  tok_identifier = -4, tok_number = -5, >> }; >> >> static std::string IdentifierStr;  // Filled in if tok_identifier >> static double NumVal;              // Filled in if tok_number >> >> /// gettok - Return the next token from standard input. >> static int gettok() { >>  static int LastChar = ' '; >> >>  // Skip any whitespace. >>  while (isspace(LastChar)) >>    LastChar = getcha...