search for: loadop

Displaying 5 results from an estimated 5 matches for "loadop".

2016 Jan 15
2
Expanding a PseudoOp and accessing the DAG
...h GRP: > def: Pat<(load (addr_use_grp tglobaladdr:$addr)), > (load (movimm tglobaladdr:$addr), GRP)>; > I'm not entirely sure what to replace 'load' with in the patterns above. I notice that we have these defm's in our XSTGInstrInfo.td file: defm LOADI64 : LoadOp< 0b1001010, "load", OpInfo_I64, II_LOAD1 >; defm LOADF64 : LoadOp< 0b1001010, "load", OpInfo_F64, II_LOAD1 >; defm LOADI32 : LoadOp< 0b1001010, "load", OpInfo_I32, II_LOAD1 >; defm LOADF32 : LoadOp< 0b1001010, "load", OpInfo_F32, II_LOAD1...
2003 Nov 21
2
[LLVMdev] Need Help With Verifier
...;TheStack" is the [1024xint] array that I mentioned above. The BasicBlock variable bb is passed in from a higher level in the compiler's call sequence. void StackerCompiler::incr_stack_index( BasicBlock* bb ) { ConstantInt* ival = ConstantInt::get(Type::LongTy, 1); LoadInst* loadop = new LoadInst( TheIndex ); bb->getInstList().push_back( loadop ); BinaryOperator* addop = BinaryOperator::create( Instruction::Add, loadop, ival); bb->getInstList().push_back( addop ); StoreInst* storeop = new StoreInst( addop, TheIndex ); bb->getIns...
2017 Aug 21
2
Extending TableGen's 'foreach' to work with 'multiclass' and 'defm'
...DC_Type2 : ... // Describe the meta-classes for the LDD group class T_LDD_Type1 : ... class T_LDD_Type2 : ... // Describe the meta-classes for the LDE group class T_LDE_Type1 : ... class T_LDE_Type2 : ... // Share a single set of definitions, but parameterised by meta-class foreach loadOp = ["LDA", "LDB", "LDC", "LDD", "LDE" ] in { def Prefix_#loadOp#_suffix1 : T_#loadOp#_Type1<...>; def Prefix_#loadOp#_suffix2 : T_#loadOp#_Type2<...>; } All of the ‘def’s pass the same values to the ‘class’s, though the ‘class’...
2016 Jan 13
2
Expanding a PseudoOp and accessing the DAG
On Wed, Jan 13, 2016 at 2:08 PM, Krzysztof Parzyszek via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On 1/13/2016 2:26 PM, Phil Tomson via llvm-dev wrote: > >> I've got this PseudoOp defined: >> >> def SDT_RELADDR : SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisInt<1>]>; >> def XSTGRELADDR :
2003 Nov 21
0
[LLVMdev] Need Help With Verifier
...2. Increment the index (Add BinaryOperator) > 3. Get the address of the stack element at that index (GEP) > 4. Store the value 1 at that address (StoreInst). Yup, that sounds good. > std::vector<Value*> indexVec; // Index vector > indexVec.push_back(loadop); // Insert single index > GetElementPtrInst* gep = new GetElementPtrInst( > TheStack, indexVec ); > bb->getInstList().push_back( gep ); // Put GEP in Block This is the problem. The deal here is that the 'getelementptr' instruction actually take...