search for: valuety

Displaying 14 results from an estimated 14 matches for "valuety".

Did you mean: valuet
2005 Aug 10
1
[LLVMdev] ValueTy not set appropriately in Value.h?
...I wanted to know what sort of Value I was seeing, and I ran across this comment in Value.h - it's probably a minor point, but unless I'm missing something I think either the last line of the comment is wrong or the code is. It appears in rev 1.58, as part of fixing bug 122. 00134 /// getValueType - Return an ID for the concrete type of this object. This is 00135 /// used to implement the classof checks. This should not be used for any 00136 /// other purpose, as the values may change as LLVM evolves. Also, note that 00137 /// starting with the InstructionVal value, the value stor...
2010 Aug 18
3
[LLVMdev] Using ValueSymbolTable...
...LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > I am getting the following error when trying to fetch the symbol table using getValueSymbolTable() /home/llvm/install/include/llvm/ADT/StringMap.h:256: void llvm::StringMap<ValueTy, AllocatorTy>::operator=(const llvm::StringMap<ValueTy, AllocatorTy>&) [with ValueTy = llvm::Value*, AllocatorTy = llvm::MallocAllocator]: Assertion `RHS.empty() && "assignment from non-empty stringmap not implemented yet!"' failed. Regards, subbu -- View this m...
2010 Aug 18
2
[LLVMdev] Using ValueSymbolTable...
Hi all, I have a question regarding populating ValueSymbolTable of a Function. Is it that ValueSymbolTable is populated automatically whenever an alloca instruction is created using IRBuilder or do we need to explicitly populate?? If we need to populate explicitly, the insert method in ValueSymbolTable is private, so how can we do it? Currently, I am trying to access the symbol table as below:
2010 Aug 18
0
[LLVMdev] Using ValueSymbolTable...
subramanyam wrote: > > Hi all, > I have a question regarding populating ValueSymbolTable of a Function. > Is it that ValueSymbolTable is populated automatically whenever an alloca > instruction is created using IRBuilder or do we need to explicitly > populate?? It's maintained by LLVM for you, by Value::setName and other methods. Nick
2012 Nov 14
4
[LLVMdev] About a problem in SROA
...ar/SROA.cpp index d95c855..696107a 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -2608,8 +2608,6 @@ private: assert(OldOp == OldPtr); IRBuilder<> IRB(&SI); - if (VecTy) - return rewriteVectorizedStoreInst(IRB, SI, OldOp); Type *ValueTy = SI.getValueOperand()->getType(); uint64_t Size = EndOffset - BeginOffset; @@ -2644,6 +2642,9 @@ private: return IsConvertable; } + if (VecTy) + return rewriteVectorizedStoreInst(IRB, SI, OldOp); + if (IntTy && ValueTy->isIntegerTy()) return rew...
2013 Mar 04
2
[LLVMdev] llvm cannot iterate a [3 x i8]
...t;"\n "<<(caa->getNumOperands())<<"\n"; errs()<<"\n "<<*(caa->getType())<<"\n"; RESULT : 0 [3 x i8] } >From this point, I tried to cast to every `enum llvm::Value::ValueTy` in order to try to iterate through [3 X i8], in order to get "DS" (as a StringRef or std::string would be nice), but I cannot. How I can parse this structure? Thank you for any help ! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.o...
2004 Jul 11
2
[LLVMdev] Adding type qualifies or property
...add a property to the value class and set/get the property, it is same to add some new type qualifies. So, I simply insert a "int" private members in the value class in llvm/Value.h, write a pair of set/get methods for the value class, and initialize it in Value::Value(const Type *ty, ValueTy vty, const std::string &name). But, when I set the privative member of a value in my pass, analyse gives me: analyze[0x83f0a00] analyze[0x83f0c0c] /lib/tls/libc.so.6[0x420275c8] analyze(void std::_Destroy<llvm::Use>(llvm::Use*)+0x11)[0x8296921] analyze(void std::__destroy_aux<llvm::U...
2010 Oct 29
1
[LLVMdev] LLVM program compile error w/ gcc 4.5 but not 4.4
...e/llvm/PassManager.h:20, from /waflhome/trapni/local/include/llvm/Support/StandardPasses.h:22, from /waflhome/trapni/local/src/flow/src/Runner.cpp:19: /waflhome/trapni/local/include/llvm/ADT/StringMap.h: In static member function 'static llvm::StringMapEntry<ValueTy>* llvm::StringMapEntry<ValueTy>::Create(const char*, const char*, AllocatorTy&, InitType)': /waflhome/trapni/local/include/llvm/ADT/StringMap.h:170:33: error: expected primary-expression before '<' token /waflhome/trapni/local/include/llvm/ADT/StringMap.h:170:48: error:...
2010 Nov 30
0
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...es should start with a lower-case letter. Please remove this. In its place, we should have a naming rule for public ivars, and for enumerations and enumerators. I'd suggest ivars and enums follow the same rules as types. If there is a doubt, the enum should be a "Kind", e.g. "ValueTy" in llvm/Value.h should be "ValueKind". Enumerators (unless they are in their own small namespace) should have a prefix. For example, the enumerators in the ValueTy enum should be VK_Argument, VK_BasicBlock, etc. These rules shouldn't apply to enums that are just convenience c...
2010 Nov 29
3
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
On Sun, Nov 28, 2010 at 11:02 PM, Anton Korobeynikov <anton at korobeynikov.info> wrote: >> I enjoyed the new coding style in recent patches. Camel case makes it easy >> to pick a descriptive name. Starting functions and variables with lower >> cases reduces chances to conflict with a type name. > Honestly speaking, I don't. Especially in the cases when varname is
2004 Jul 12
0
[LLVMdev] Adding type qualifies or property
...e value class and set/get the > property, it is same to add some new type qualifies. So, I simply > insert a "int" private members in the value class in > llvm/Value.h, write a pair of set/get methods for the value > class, and initialize it in Value::Value(const Type *ty, ValueTy vty, const std::string &name). But, when I set the privative > member of a value in my pass, analyse gives me: > > analyze[0x83f0a00] > analyze[0x83f0c0c] > /lib/tls/libc.so.6[0x420275c8] > analyze(void std::_Destroy<llvm::Use>(llvm::Use*)+0x11)[0x8296921] > analyze...
2015 Aug 28
2
Llvm pass to remove temporaries
Hi. I'm just starting to dig into the many existing llvm passes, and so far I didn't find what I'm looking for. I generate llvm IR code in debug. I'd just like to go through this code and remove as many temporaries as possible. Those variables look generated for debug purposes. They often look like synonyms of variables declared in the input source and don't seem to have a
2020 Oct 01
3
Creating a global variable for a struct array
...Init->getType(), false, GlobalVariable::ExternalLinkage, htabInit, "htab"); Here is the error message: opt: /home/chaitra/llvm-5-src/lib/IR/Constants.cpp:879: llvm::ConstantAggregate::ConstantAggregate(llvm::CompositeType*, llvm::Value::ValueTy, llvm::ArrayRef<llvm::Constant*>): Assertion `V[I]->getType() == T->getTypeAtIndex(I) && "Initializer for composite element doesn't match!"' failed. #0 0x0000000001e558fa (opt+0x1e558fa) #1 0x0000000001e5366e (opt+0x1e5366e) #2 0x0000000001e537e2 (opt+0x1e537e2...
2020 Oct 01
2
Creating a global variable for a struct array
Thank you very much. The code to initialize h1 to non-zero values was what I was looking for. It's almost working except for a type mismatch wrt dlist* llist field of h1. dlist static_lst[10] = { {1, 5, NULL}, ... }; dhash h1[10] = {{"myfile.txt", static_lst}, ... }; Along the lines of the code you had sent, I created a GlobalVariable* llist of type [10 x %struct.dlist]* for the