search for: newf

Displaying 20 results from an estimated 79 matches for "newf".

Did you mean: new
2015 Aug 10
2
Bug or expected behavior of APFloat class?
...0); return std::string(strRep.begin(), strRep.end()); } uint16_t getBits(APFloat f) { APInt bits = f.bitcastToAPInt(); assert(bits.getActiveBits() <= 16); return (uint16_t) (bits.getZExtValue() & 0xffff); } int main(int argc, char** argv) { APFloat f(APFloat::IEEEhalf); APFloat newF(APFloat::IEEEhalf); f.convertFromString("0.3", APFloat::rmTowardZero); outs() << "f bits: 0x"; outs().write_hex(getBits(f)); outs() << "\n"; assert(getBits(f) == 0x34cc); // Check that if we get the string using FormatPrecision=0 // that this...
2011 Feb 28
3
[LLVMdev] Extending FunctionType
...() function. I don't think a full clone is necessary, since he wants to replace the function. He only needs to create the new function and splice in the body of the old one. Gabriel: look at Function::getBasicBlockList() and iplist<>::splice(iterator, iplist). Something like Function *NewF = Function::Create(NewFnType, OldF->getLinkage()); NewF->getBasicBlockList().splice(NewF->begin(), OldF->getBasicBlockList()); NewF->takeName(OldF); OldF->eraseFromParent(); is probably what you're looking for. (Note: completely untested)
2011 Feb 28
2
[LLVMdev] Extending FunctionType
...e easy enough to call replaceAllUsesWith() on each old argument, since there's no need to worry about preserving the integrity of the old function. >> Gabriel: look at Function::getBasicBlockList() and >> iplist<>::splice(iterator, iplist). Something like >>   Function *NewF = Function::Create(NewFnType, OldF->getLinkage()); >>   NewF->getBasicBlockList().splice(NewF->begin(), >> OldF->getBasicBlockList()); >>   NewF->takeName(OldF); >>   OldF->eraseFromParent(); >> is probably what you're looking for. >> (Note:...
2008 Jan 30
3
newfs locks entire machine for 20seconds
...Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 12 root 1 171 ki31 0K 16K RUN 0 8:59 97.90% idle: cpu0 11 root 1 171 ki31 0K 16K RUN 1 8:57 95.80% idle: cpu1 1102 root 1 -8 0 4752K 1256K physrd 1 0:01 19.64% newfs 4 root 1 -8 - 0K 16K - 0 0:00 0.10% g_down 1048 root 1 96 0 7656K 2544K CPU0 0 0:01 0.00% top 1054 root 1 96 0 7656K 2348K CPU1 1 0:01 0.00% top 863 root 1 96 0 131M 15768K select 0 0:00 0.00% httpd 1055 root...
2011 Feb 28
0
[LLVMdev] Extending FunctionType
...code below would work. I don't see a mechanism that updates instructions that use the old function's arguments to use the new function's arguments. > Gabriel: look at Function::getBasicBlockList() and > iplist<>::splice(iterator, iplist). Something like > Function *NewF = Function::Create(NewFnType, OldF->getLinkage()); > NewF->getBasicBlockList().splice(NewF->begin(), OldF->getBasicBlockList()); > NewF->takeName(OldF); > OldF->eraseFromParent(); > is probably what you're looking for. > (Note: completely untested) --...
2008 Feb 17
6
How to take down a system to the point of requiring a newfs with one line of C (userland)
...otherwise had no problems in the eyes of fsck. booted again, instant panic. i booted an older 6.2 CD and mounted the filesystem fine. i then put that filesystem the way it was by mkdir'ing a distfiles dir and mv'ing everything into it, but on reboot it still paniced on mount. only a newfs was able to enable the filesystem to be mounted. today i did further research, thinking it had to do with the number of files in the top-level filesystem directory, and found that to be true. the short c program in the next section (how to repeat the problem) contains this. a second test sho...
2008 Feb 17
6
How to take down a system to the point of requiring a newfs with one line of C (userland)
...otherwise had no problems in the eyes of fsck. booted again, instant panic. i booted an older 6.2 CD and mounted the filesystem fine. i then put that filesystem the way it was by mkdir'ing a distfiles dir and mv'ing everything into it, but on reboot it still paniced on mount. only a newfs was able to enable the filesystem to be mounted. today i did further research, thinking it had to do with the number of files in the top-level filesystem directory, and found that to be true. the short c program in the next section (how to repeat the problem) contains this. a second test sho...
2013 May 29
2
[LLVMdev] CloneFunctionInto() Error
...ks.so -blocks Aborted (core dumped) ***The code is > std::vector<Type*> ArgTypes; > ValueToValueMapTy VMap; >FunctionType *FTy = FunctionType::get(F.getFunctionType()->getReturnType(), ArgTypes, F.getFunctionType()->isVarArg()); >Function *NewF = Function::Create(FTy, F.getLinkage(), F.getName()); > SmallVector<ReturnInst*, 8> Returns; >CloneFunctionInto(NewF, (Function*) &F, VMap, false, Returns, "_", 0, 0); Thanks in advance -- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Comput...
2011 Feb 28
0
[LLVMdev] Extending FunctionType
On 2/28/11 6:31 AM, Gabriel Rodríguez wrote: > Hi all, > > I am trying to extend a FunctionType to include new parameters. In > particular, I want to > ensure that the main function has been declared with both argsc and > argsv. However > there seems to be no easy way to accomplish this: > llvm::Function::getFunctionType() returns a > a reference to a const object,
2012 Feb 11
3
9.0-RELEASE PV from scratch on XCP v1.1.0
...image itself fdisk -BI md0 # Write the DOS partition table # Create an inital BSD Label # For testing, we''ll assume one large partition bsdlabel -w -B md0s1 bsdlabel -e md0s1 # Change partition a from ''unused'' to ''4.2BSD'' newfs -O1 /dev/md0s1a # UFS, because pygrub doesn''t grok UFS2 # Mount up the image and do the installation mount /dev/md0s1a /media # Perform the installation to the disk image. cd /usr/src make -s DESTDIR=/media KERNCONF=XEN installworld make -s DESTDIR=/media KERNCONF=XEN installkernel make...
2011 Feb 28
2
[LLVMdev] Extending FunctionType
Hi all, I am trying to extend a FunctionType to include new parameters. In particular, I want to ensure that the main function has been declared with both argsc and argsv. However there seems to be no easy way to accomplish this: llvm::Function::getFunctionType() returns a a reference to a const object, while modifying only the argument list yields an error during verification since the
2009 Aug 01
1
[LLVMdev] Inserting Instructions (pass)
...{fpsr},~{flags}",true); How can I insert this InlineAsm, because it is no instruction and this way it will not work: Instruction *pi = bi; pi->getParent()->getInstList().insert(pi, Iasm); I try to build a CallInst with a function, but I have still some problems Function *NewF = new Function(asm_Ftype,???,???); CallInst* NewCInst = new CallInst(NewF, ??? But where to set the InlineAsm and what type of LinkageType is required .? Thanks for help Michael Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im Auftrag von Chris Lattne...
2013 May 29
0
[LLVMdev] CloneFunctionInto() Error
...is > > > > std::vector<Type*> ArgTypes; > > > ValueToValueMapTy VMap; > > >FunctionType *FTy = > FunctionType::get(F.getFunctionType()->getReturnType(), > ArgTypes, F.getFunctionType()->isVarArg()); > > >Function *NewF = Function::Create(FTy, F.getLinkage(), F.getName()); > > > SmallVector<ReturnInst*, 8> Returns; > > >CloneFunctionInto(NewF, (Function*) &F, VMap, false, Returns, "_", 0, > 0); > > > Thanks in advance > > -- > *Rasha Salah Omar > Msc...
2007 Feb 21
12
suggestion: directory promotion to filesystem
...ths later I realise it would be so much nicer to be able to snapshot my movies and photos seperatly for backups, instead of doing the whole share. Not hard to work around - zfs create and a mv/tar command and it is done... some time later. If there was say a "zfs graft <directory> <newfs>" command, you could just break of the directory as a new filesystem and away you go - no copying, no risking cleaning up the wrong files etc. Corollary - zfs "merge" - take a filesystem and merge it into an existing filesystem. Just a thought - any comments welcome. This m...
2011 Jul 10
3
How create a FAT filesystem on a zvol?
The `lofiadm'' man page describes how to export a file as a block device and then use `mkfs -F pcfs'' to create a FAT filesystem on it. Can''t I do the same thing by first creating a zvol and then creating a FAT filesystem on it? Nothing I''ve tried seems to work. Isn''t the zvol just another block device? -- -Gary Mills- -Unix Group-
2007 Mar 28
6
ZFS and UFS performance
...510 FC that has 12 x 300 GB disks. The 3510 is configured as HW RAID 5 with 10 disks and 2 spares and it''s exported to the V240 as a single LUN. We create iso images of our product in the following way (high-level): # mkfile 3g /isoimages/myiso # lofiadm -a /isoimages/myiso /dev/lofi/1 # newfs /dev/rlofi/1 # mount /dev/lofi/1 /mnt # cd /mnt; zcat /product/myproduct.tar.Z | tar xf - and we finally use mkisofs to create the iso image. UFS performance ---------------------- We created a UFS file system on the above LUN and the above iso creation process takes about 5 mins. (I don'...
2003 Aug 14
1
/usr: create/symlink failed, no inodes free
hi sirs, i try to install galeon2 for my machine but get an error messages that i really do not understand while making mozilla. that errors appear at the very beginning of a make command. i attache my uname, df both before and after make, and errors message with this mail. in wchich case that inodes are not sufficient ? and also how to get rid of this kind of error. thank you in advance for
2007 Jan 10
1
Solaris 10 11/06
...features and fixes via patches (NOTE: later patch revision may already be available): Solaris 10 Update 3 (11/06) Patches sparc Patches * 118833-36 SunOS 5.10: kernel patch * 124204-03 SunOS 5.10: zfs patch * 122660-07 SunOS 5.10: zones jumbo patch * 120986-07 SunOS 5.10: mkfs and newfs patch * 123839-01 SunOS 5.10: Fault Manager patch i386 Patches * 118855-36 SunOS 5.10_x86: kernel Patch * 122661-05 SunOS 5.10_x86: zones jumbo patch * 124205-04 SunOS 5.10_x86: zfs/zpool patch * 120987-07 SunOS 5.10_x86: mkfs, newfs, other ufs utils patch * 123840-01 Sun...
2011 Jul 06
2
[LLVMdev] First steps with LLVM and partial evaluation
...gTypes.push_back(I->getType()); // Create a new function type... FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(), ArgTypes, F->getFunctionType()->isVarArg()); // Create the new function... Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName()); // Loop over the arguments, copying the names of the mapped arguments over... Function::arg_iterator DestI = NewF->arg_begin(); for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end(); I != E;...
2009 Aug 01
0
[LLVMdev] Inserting Instructions (pass)
On Jul 31, 2009, at 5:04 PM, Michael Graumann wrote: > Thank you Chris, > for your hint, but I am still too stupid. I tried two versions > > asm_arguments.push_back(Type::VoidTy); > FunctionType *asm_type = FunctionType::get(Type::VoidTy, > asm_arguments, false); > > Alternatively > > FunctionType *asm_type = FunctionType::get(Type::VoidTy, >