search for: my_typ

Displaying 3 results from an estimated 3 matches for "my_typ".

Did you mean: my_type
2011 Aug 24
0
[LLVMdev] v3.0 type system rewrite question
...ot picking up on named types currently defined in a given Module (global context). However, I don't have much experience with the LLVM internals so there's a good chance that I'm not fully understanding the new changes ;) For Example: This works fine (via ParseAssemblyString): "%my_type = type double define double @my_func(%my_type %a) { entry: %return = fmul %my_type %a, 5.0 ret %my_type %return }" However splitting this into two independent calls results in a parser error. So this ... "%my_type = type double" followed at a later date by ... "defin...
2012 Oct 18
1
[LLVMdev] Incrementing a pointer to array element?
Using the LLVM C++ API, if I want to create an array via an Alloca instruction like: Value *a = ir_builder.CreateAlloca( my_type, my_size ); and then I want to initialize each element of the array with values computed elsewhere like: for ( vector<Value*>::const_iterator i = v.begin(); i != v.end(); ++i ) { builder.CreateStore( *i, a ); // How do I increment 'a' to point to the next element? } how do...
2014 Feb 22
0
Validates inclusion of include fails at plugin.
Hello, MyModel.rb, TYPES = { "type1" => 1 , "type2" => 2, "type3" => 3 }.freeze validates_inclusion_of :my_type, :in => TYPES.keys --------------------------------------- MyModelPatch.rb, base.send(:remove_const, :TYPES) base._validators[:my_type].reject!{ |validator| validator if validator.is_a? ActiveModel::Validations::InclusionValidator } TYPES = { "type1" => 1 , "type2" =&g...