search for: findvalue

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

Did you mean: find_value
2007 Jun 15
1
[LLVMdev] EquivalenceClasses: findValue vs. findLeader
...need to get a list of all members of the equivalence class that o is in. For various reasons, it is easiest if I could get an EquivalenceClasses::iterator that I can pass to member_begin and member_end. So naturally, I did something like this (pseudo-C++): EquivalenceClasses::iterator i = equiv.findValue(o); for(equiv.member_begin(i); member_end(i); ++i) { // Do stuff } Unfortunately, this doesn't seem to work. findValue returns an iterator that is not end(), but the member set of the equivalence class is empty. Strangly, when I just iterate through the EquivalenceClasses object like this...
2006 Mar 27
1
[LLVMdev] could you give me some advice ?
excuse me for bother you again . a little supplement Constant* c = findValue(m,"E1$entry"); Constant* c2 = findValue(m,"E1$str"); I can get string object from c2 string s = cast<ConstantArray>(c2)->getAsString(); but it is not applicable for c string s= cast<ConstantArray>(c)->getAsString(); // Assert Fail because c is ConstantExpr...
2006 Mar 25
1
[LLVMdev] could you give me some advice ?
...Ptr to define SByte* from ConstantArray "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) ... when i want to get std::string object from this declaration in another program Module* m = loadModule("XXX.bc"); Constant* c = findValue(m,"E1$entry"); GlobalVariable* gv = cast<GlobalVariable>(c->getOperand(0)); ConstantArray* ca = cast<ConstantArray>(gv->getOperand(0)); std::string str = ca->getAsString(); now str = "E1" these code looks a little ugly , could you tell me better solutio...
2006 Mar 27
0
[LLVMdev] could you give me some advice ?
...ntry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) >> ... >> >> when i want to get std::string object from this declaration in another program >> >> Module* m = loadModule("XXX.bc"); >> Constant* c = findValue(m,"E1$entry"); >> GlobalVariable* gv = cast<GlobalVariable>(c->getOperand(0)); >> ConstantArray* ca = cast<ConstantArray>(gv->getOperand(0)); >> std::string str = ca->getAsString(); >> >> now str = "E1" >> these code lo...
2006 Mar 26
0
[LLVMdev] could you give me some advice ?
...onstantArray >"E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0) >.. > >when i want to get std::string object from this declaration in another program > > Module* m = loadModule("XXX.bc"); > Constant* c = findValue(m,"E1$entry"); > GlobalVariable* gv = cast<GlobalVariable>(c->getOperand(0)); > ConstantArray* ca = cast<ConstantArray>(gv->getOperand(0)); > std::string str = ca->getAsString(); > >now str = "E1" >these code looks a little ugly , could yo...