similar to: Functions have two types, one can be mutated but not the other

Displaying 20 results from an estimated 1600 matches similar to: "Functions have two types, one can be mutated but not the other"

2017 Mar 24
2
Problem about API difference between LLVM3.5 and LLVM3.9
Hi all, Recently I have implemented a transformation pass based on LLVM3.5 and its function is to duplicate the function's argument list in a bytecode file and replace all use of original function with modified function. In LLVM3.5, the pass can work properly. However, when I tried to transplant the pass to LLVM3.9, the error "Argument value does not match function argument type!"
2020 May 07
2
Cast between struct
Dear All, In my development, a function returns a struct {i8*, i64}, and on the call site I need to assign the return value to a struct of type {some_struct*, i64}. One way to do it is to call the mutateType() method of llvm::Value on the return value of the function call; however, I’m concerned that this mutateType() method might be too disruptive (it’s discouraged to use it by the
2012 Feb 27
2
[LLVMdev] mapping types from a bitcode module
Hi Clemens - thanks for your response. Clemens Hammacher wrote: > Hi Michael, > > since noone of the experts answered, let me share our experiences. We > recently had exactly the same problem, I posted on this list on January > 31st. > I didn't follow Duncans advice to "just use the linker", since for > several reasons we wanted to have unique struct types
2012 Feb 28
0
[LLVMdev] mapping types from a bitcode module
On 2/27/12 8:27 PM, Michael Muller wrote: >>> 3) destructively convert all of the types in the imported module to our >>> existing types. >> >> That's what we actually implemented, following the idea I described in >> the mentioned post. We don't identify identical struct types by their >> name, since even in the new type system, names don't
2012 Apr 23
3
Selecting columns whose names contain "mutated" except when they also contain "non" or "un"
Hello All, Started out awhile ago trying to select columns in a dataframe whose names contain some variation of the word "mutant" using code like: names(KRASyn)[grep("muta", names(KRASyn))] The idea then would be to add together the various columns using code like: KRASyn$Mutant_comb <- rowSums(KRASyn[grep("muta", names(KRASyn))]) What I discovered though, is
2024 Mar 22
1
Problem with new version of R: Mutated vocals
Dear ladies and gentlemen, I have recently installed the latest version of R (4.3.3) for windows. Now I have the following problems with mutated vowels like ?, ?, etc. Here is an example: If I type the command: Dir <- "C/Users/macho/Documents/_LVn/Experimentelle ?bungen" in the R console there is no problem. However, if I put the same command into a source file (e.g. Test.r) and call
2012 Feb 27
0
[LLVMdev] mapping types from a bitcode module
Hi Michael, since noone of the experts answered, let me share our experiences. We recently had exactly the same problem, I posted on this list on January 31st. I didn't follow Duncans advice to "just use the linker", since for several reasons we wanted to have unique struct types even in the separate modules. > 1) duplicate the LinkModule internal code and copy the module we
2012 Mar 06
2
[LLVMdev] Work with CallSites
Hi. I have a test program: class A { int A; public: virtual void test ( int x ) = 0; }; class B : public A { int B; public: void test ( int x ) {}; }; int main() { A *a = new B(); a->test(1); } We have call site CS: "a->test(1);". CS.getCalledFunction() - return NULL, so we can say that this call site is virtual. My optimization determines, that in this call site
2012 Feb 02
2
[LLVMdev] Disjoint types after reading several modules
Hi Chris, thanks for your answer! On 2/2/12 1:15 AM, Chris Lattner wrote: > The linker has to solve the exact same problem (read multiple .bc files and unify types across them). This is the impetus behind TypeMapTy in lib/Linker/LinkModules.cpp. You'll probably need to do something like that. I already looked into that. The linker is using the GlobalValues of both modules to identify
2019 Aug 09
2
Standalone Server User Import / Export
Am Freitag, den 09.08.2019, 08:45 +0100 schrieb Rowland penny via samba: > On 09/08/2019 07:38, David Ayers via samba wrote: > > Am Donnerstag, den 08.08.2019, 20:01 +0100 schrieb Rowland penny > > via > > samba: > > > > > But what I could do, is copy the setup incl. the tdb files to a > > test VM to try to reproduce it, upgrade that test VM in the hope
2018 Sep 03
2
Replacing a function from one module into another one
Thank you Ahmad, I figured out that, although the type of both p(oInst) and p(nInst) were the same, I had to: for (unsigned int i = 0; i < callOInst->getNumArgOperands(); i++) { callOInst->getArgOperand(i)->mutateType(callNInst->getArgOperand(i)->getType()); } that solves the issue at the calling instruction in the main function, but now I see that *linkModules* does not work
2016 Jun 28
0
mutateType on AllocaInst problem
Hi, I'm trying to replace pointer typed alloca instructions to allocate a vector of pointers. The idea is to change from [1] to [2]: [1]: %0 = alloca i<N>* [2]: %0 = alloca <3 x i8*> I did it this way: - first, create and insert [2] (for debug purpose, not necessary to insert) - mutate type so that replaceAllUsesWith can be called in a correctly typed way - replace all
2019 Aug 09
2
Standalone Server User Import / Export
Am Donnerstag, den 08.08.2019, 20:01 +0100 schrieb Rowland penny via samba: > On 08/08/2019 19:10, David Ayers wrote: > > > Can we see your smb.conf file ? > > > > attached... slightly redacted. > > Inline without all the commented lines and default settings: > > [global] > ??? workgroup = WORKGROUP > ??? netbios name = REDACTED > ??? server string =
2016 Feb 25
2
Possible soundness issue with available_externally (split from "RFC: Add guard intrinsics")
I recall it was things we could deduce by scanning the method before we optimized it, eg deduced noreturn/nothrow. I'd have to go check to be sure. Once you allow inlining, you're pretty much telling your users they had better give you compatible definitions. We wanted to make sure that if users gave us compatible defs (mainly: same source, but optimized in one CU and not in another),
2017 Aug 31
2
Re: network configuration for guest specific dns-servers
Thanks a lot, Martin! Am Donnerstag, den 31.08.2017, 10:11 +0200 schrieb Martin Kletzander: > On Thu, Aug 31, 2017 at 12:10:22AM +0200, David Ayers wrote: > > > >We would like to configure guest specific dns-servers as would be done > >with the --dhcp-option of dnsmasq. I was expecting to be able to do > >something like: > > > > <host
2017 Aug 30
2
network configuration for guest specific dns-servers
Hello, similar to how one can configure guest specific IP addresses via mac addresses: <ip address="192.168.122.1" netmask="255.255.255.0" localPtr="yes"> <dhcp> <range start="192.168.122.100" end="192.168.122.254"/> <host mac="00:16:3e:77:e2:ed" name="foo.example.com"
2002 Feb 19
4
CR instead of CR/LF
New to Samba, so excuse me if this is a stupid question, but I've searched the different on line resources and can't find an answer. When I copy Perl scripts from my Windows 2000 machine to the UNIX Samba share on that same machine, a CR/LF appears at the end of each line instead of just the CR, making UNIX unhappy when I go to run those scripts. Any way to have Samba strip the LF
2018 Sep 04
2
Replacing a function from one module into another one
Hi Philip, Thank you very much for your answer, the vector declaration example worked. I'm pretty sure the ValueToValueMapTy is the last thing I need because I even saw there is another function that could help me llvm*:*:RemapFunction <http://llvm.org/doxygen/namespacellvm.html#addf0183e92893bdbcde00fc9091dda93>; but my problem is that I don't know how to populate the
2019 Aug 08
4
Standalone Server User Import / Export
Hello! when using Samba [4.5.16-Debian] as standalone server in Windows environment to allow certain users to access shares, we are currently using the default tdbsam backend with a bunch of users. We now want to migrate the users from one standalone server to a replacement server.??To migrate the users I expected to able to export the users (incl. passwords) into a file on one server, copy the
2016 Feb 25
0
Possible soundness issue with available_externally (split from "RFC: Add guard intrinsics")
> On Feb 25, 2016, at 12:02 PM, Andy Ayers via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I recall it was things we could deduce by scanning the method before we optimized it, eg deduced noreturn/nothrow. I'd have to go check to be sure. Yes, my understanding is that this is what Chandler suggested when he wrote as part of his plan: 2) Teach frontends to emit (even at