search for: contantarray

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

Did you mean: constantarray
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... URL: <http://lists...
2020 Sep 30
2
Creating a global variable for a struct array
Let me clarify my question. I have a struct array h1 as follows: dhash h1[10]; I want to get a Constant* to variable h1. It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this. My question is how to get the second argument of type ArrayRef<Constant *> from the above variable h1. Thanks, Chaitra ________________________________ From: Tim Northover
2020 Oct 01
2
Creating a global variable for a struct array
...static_lst = {1, 5, NULL}; dhash h1[10] = {{"myfile.txt", &static_list}, 0 }; > It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this. It would be involved in the second example above, but because h1 is an array you'd need a whole ContantArray of them. > My question is how to get the second argument of type ArrayRef<Constant *> from the above variable h1. In the second example I gave above you'd write something like // First create a global variable to hold the filename string. Constant *FileNameInit = ConstantDat...