search for: storage_bitcode

Displaying 2 results from an estimated 2 matches for "storage_bitcode".

2020 Oct 01
3
Creating a global variable for a struct array
...ild/glibc-e6zv40/glibc-2.23/assert/assert.c:92:0 #7 0x00007f8a977bfc92 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc92) #8 0x000000000189c982 (opt+0x189c982) #9 0x000000000189cc7c (opt+0x189cc7c) #10 0x00000000018a93e0 (opt+0x18a93e0) #11 0x00000000018a95f3 (opt+0x18a95f3) #12 0x00007f8a9758e59a iospecns::storage_bitcode::runOnModule(llvm::Module&) (/home/chaitra/Desktop/iospec_test/test/build/proj/libstorage_bitcode.so+0x459a) #13 0x00000000019473ad (opt+0x19473ad) #14 0x00000000006db61c (opt+0x6db61c) #15 0x00007f8a977b2840 __libc_start_main /build/glibc-e6zv40/glibc-2.23/csu/../csu/libc-start.c:325:0 #16 0x0...
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