search for: constantdatasequential

Displaying 12 results from an estimated 12 matches for "constantdatasequential".

2017 May 22
2
DebugInfo, Metadata usage
...< "Encoding : " << Encoding.str() << "\n"; } } } llvm::outs() << "\n\nPrint All Strings Declarations: \n"; for(GlobalVariable& GV : M->globals()) { if(!GV.hasInitializer()) continue; if(ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(GV.getInitializer())) { llvm::outs() << "GVName: " << GV.getName() << "\n"; llvm::outs() << "\tRawDataValues : " << CDS->getRawDataValues().str() << &qu...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...m2, void * Param3) Line 158 C ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void * BaseAddress) Line 352 C ucrtbase.dll!_free_base(void * block) Line 105 C++ XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) Line 238 C++ XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential *> KV) Line 344 C++ [Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value *,llvm::MallocAllocator>::GetOrCreateValue(llvm::StringRef) Line 371 C++ [Inline Frame] XXXTest.exe!llvm::Str...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...> ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void * > BaseAddress) Line 352 C > ucrtbase.dll!_free_base(void * block) Line 105 C++ > XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) > Line 238 C++ > XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * > __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential > *> KV) Line 344 C++ > [Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value > *,llvm::MallocAllocator>::GetOrCreateValue(llvm::StringRef) Line 371 C++ > [Inline Fra...
2015 Mar 10
4
[LLVMdev] n-bit bytes for clang/llvm
...e consensus seemingly being "quite doable, please get a good patch and submit". However the current code appears (to my neophyte eyes) to be explicitly 8-bit, e.g. one instance called out in the mail thread remains: /// isString - This method returns true if this is an array of i8. bool ConstantDataSequential::isString() const { return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(8); } I didn't find anything related beyond this mail thread such as a discussion of a patch but of course I might be searching too narrowly - perhaps someone here can recall whether it wen...
2013 Mar 04
2
[LLVMdev] llvm cannot iterate a [3 x i8]
Hello everyone, I am trying to "parse" a part of LLVM IR. More exactly, from @.str = private unnamed_addr constant [3 x i8] c"DS\00", section "llvm.metadata" I want to get "DS". It is the single place in the whole bytecode from where I can get it. I have : ... Value *VV = cast<Value>(LD100->getOperand(1)->getOperand(0));
2017 May 24
2
DebugInfo, Metadata usage
...ta? And again, in advance, thank you very much! ---------------------- the best regards! 0x0859549A On 05/22/2017 08:45 PM, Adrian Prantl wrote: >> On May 22, 2017, at 6:14 AM, DES via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> What way can I get DIBasicType for ConstantDataSequential? >> Literally, I want to know is there any way to get the relationship >> between constant, globals and related debuginfo, metadata information? > To get to the source variables associated with a global you can use code like this (copied from the IR Verifier): > > SmallVector...
2015 Mar 11
3
[LLVMdev] n-bit bytes for clang/llvm
...e consensus seemingly being "quite doable, please get a good patch and submit". However the current code appears (to my neophyte eyes) to be explicitly 8-bit, e.g. one instance called out in the mail thread remains: /// isString - This method returns true if this is an array of i8. bool ConstantDataSequential::isString() const {   return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(8); } I didn't find anything related beyond this mail thread such as a discussion of a patch but of course I might be searching too narrowly - perhaps someone here can recall whether it wen...
2012 Sep 28
0
[LLVMdev] Getting Static Array Content
I'm trying to get the values in a static global array. What is the best way to go about doing this? Once I have the pointer (Ie GlobalVariable *GV = dyn_cast<GlobalVariable>(itr))? I basically just want to check for ConstantDataSequential and print out the values. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120927/0bb41b1a/attachment.html>
2012 Sep 28
0
[LLVMdev] Fwd: Re: Getting Static Array Content
...(Ie GlobalVariable *GV = > dyn_cast<GlobalVariable>(itr))? Yes. Take a look at hasInitializer() and getInitializer() methods. The latter should give you a ConstantDataArray for arrays of simple types (dyn_cast here again to be sure). Ivan > > I basically just want to check for ConstantDataSequential and print > out the values. > > Thanks. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------...
2012 Sep 28
0
[LLVMdev] Getting Static Array Content
..._cast<GlobalVariable>(itr))? > > > Yes. Take a look at hasInitializer() and getInitializer() methods. The > latter should give you a ConstantDataArray for arrays of simple types > (dyn_cast here again to be sure). > > Ivan > > > I basically just want to check for ConstantDataSequential and print out > the values. > > Thanks. > > > _______________________________________________ > LLVM Developers mailing listLLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > -------------- next part ----------...
2012 Nov 29
1
[LLVMdev] ConstantArray::getAsString in LLVM 3.1
Hello, I'm working on porting a project to LLVM 3.1. Unfortunately, my project makes very heavy use of ContantArray::getAsString() -- which was removed in LLVM 3.1. Is there an equivalent in 3.1? In other words, what is the best way to get the value of a string that was stored in a ConstantArray? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed...
2014 Nov 08
2
[LLVMdev] [RFC] Exhaustive bitcode compatibility tests for IR features
It sounds like the Android RenderScript guys have the most in-the-trenches experience with bitcode incompatibilities. Stephen Hines (CC'd), what sorts of incompatibilities have you guys seen during the 3.x timeline? Would Steven Wu's proposal catch the sorts of incompatibilities that you guys have seen? -- Sean Silva On Thu, Nov 6, 2014 at 4:38 PM, Steven Wu <stevenwu at apple.com>