Displaying 18 results from an estimated 18 matches for "createcast".
Did you mean:
createcall
2010 Jun 12
1
Problem launching Cursed mountain
...>\logos\logo1.timg
2: <pp>\logos\logo2.timg
Create Font: <CP>\misc\fonts\<TP>\debug.tga
Create Font: <CP>\misc\fonts\<TP>\normal.tga
Create Font: <CP>\misc\fonts\<TP>\symbols.tga
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x5d35d08,0x5d36190): stub
CreateCast Misc path = <CP>\Settings\misc.txt
CreateCast Global path = <CP>\Settings\global.txt
CreateCast EnemySettings path = <CP>\Settings\enemies.txt
CreateCast Sound path = <CP>\Settings\soundPresets.txt
CreateCast Effects path = <CP>\Settings\effects.txt
CreateCast Particle...
2007 Dec 17
0
[LLVMdev] Elsa and LLVM and LLVM submissions
...+ // Instruction creation methods: Cast/Conversion Operators
> + //
> =
> =
> =--------------------------------------------------------------------
> ===//
> +
> + Value *CreateTrunc(Value *V, const Type *DestTy, const char *Name
> = "") {
> + return CreateCast(Instruction::Trunc, V, DestTy, Name);
> + }
> + Value *CreateZExt(Value *V, const Type *DestTy, const char *Name
> = "") {
> + return CreateCast(Instruction::ZExt, V, DestTy, Name);
> + }
> + Value *CreateSExt(Value *V, const Type *DestTy, const char *Name
>...
2007 Dec 17
2
[LLVMdev] Elsa and LLVM and LLVM submissions
Devang Patel wrote:
> On Dec 15, 2007, at 12:15 PM, Richard Pennington wrote:
>
>> I got the current version of LLVM via svn yesterday and modified my
>> code to
>> use the LLVMFoldingBuilder. Very nice!
>>
>> My question is this: I noticed that the folding builder doesn't fold
>> some
>> operations, e.g. casts. Is there some reason why? If
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
Hello
I want to transfer value (Value* src) of the type `FloatTyID` to
`DoubleTyID`(I need all floats to be saved as 8 bytes).I have tried:
builder.CreateCast(llvm::Instruction::FPExt, src,
llvm::Type::getDoubleTy(llvmContext),””)
I don`t know if I use CreateCast correctly and if this approach is correct
at all.
Thank you.
Yakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-de...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...rect to me. You can also use CreateFPExt which is
> slightly simpler.
>
> Ciao, Duncan.
>
>
>> I want to transfer value (Value* src) of the type `FloatTyID` to
>> `DoubleTyID`(I
>> need all floats to be saved as 8 bytes).I have tried:
>>
>> builder.CreateCast(llvm::Instruction::FPExt, src,
>> llvm::Type::getDoubleTy(llvmContext),””)
>>
>> I don`t know if I use CreateCast correctly and if this approach is
>> correct at all.
>>
>> Thank you.
>>
>> Yakov
>>
>>
>>
>> __________________...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...ler.
>>>
>>> Ciao, Duncan.
>>>
>>>
>>> I want to transfer value (Value* src) of the type `FloatTyID` to
>>>> `DoubleTyID`(I
>>>> need all floats to be saved as 8 bytes).I have tried:
>>>>
>>>> builder.CreateCast(llvm::**Instruction::FPExt, src,
>>>> llvm::Type::getDoubleTy(**llvmContext),””)
>>>>
>>>> I don`t know if I use CreateCast correctly and if this approach is
>>>> correct at all.
>>>>
>>>> Thank you.
>>>>
>>&...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...>>>
>>> I want to transfer value (Value* src) of the type
>>> `FloatTyID` to
>>> `DoubleTyID`(I
>>> need all floats to be saved as 8 bytes).I have tried:
>>>
>>> builder.CreateCast(llvm:: Instruction::FPExt, src,
>>> llvm::Type::getDoubleTy( llvmContext),””)
>>>
>>>
>>> I don`t know if I use CreateCast correctly and if this
>>> approach is
>>> correct at all.
>>>
>&...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
Hi Yakov, that looks correct to me. You can also use CreateFPExt which is
slightly simpler.
Ciao, Duncan.
> I want to transfer value (Value* src) of the type `FloatTyID` to `DoubleTyID`(I
> need all floats to be saved as 8 bytes).I have tried:
>
> builder.CreateCast(llvm::Instruction::FPExt, src,
> llvm::Type::getDoubleTy(llvmContext),””)
>
> I don`t know if I use CreateCast correctly and if this approach is correct at all.
>
> Thank you.
>
> Yakov
>
>
>
> _______________________________________________
> LLVM Developers ma...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...which is
>> slightly simpler.
>>
>> Ciao, Duncan.
>>
>>
>>> I want to transfer value (Value* src) of the type `FloatTyID` to
>>> `DoubleTyID`(I
>>> need all floats to be saved as 8 bytes).I have tried:
>>>
>>> builder.CreateCast(llvm::Instruction::FPExt, src,
>>> llvm::Type::getDoubleTy(llvmContext),””)
>>>
>>> I don`t know if I use CreateCast correctly and if this approach is
>>> correct at all.
>>>
>>> Thank you.
>>>
>>> Yakov
>>>
>>&...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
On 14/11/11 21:11, Yakov Malinkovich wrote:
> Here is the error that I get:
> Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) ==
> Params[i]->getType()) && "Calling a function with a bad signature!"
That's not being generated by the CreateCast, so it looks like your description
of the problem was quite misleading.
Ciao, Duncan.
> Yakov
>
>
> On Mon, Nov 14, 2011 at 9:05 PM, Eric Christopher <echristo at apple.com
> <mailto:echristo at apple.com>> wrote:
>
> You'll probably need to dump both the...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...Ciao, Duncan.
>>
>>
>> I want to transfer value (Value* src) of the type
>> `FloatTyID` to
>> `DoubleTyID`(I
>> need all floats to be saved as 8 bytes).I have tried:
>>
>> builder.CreateCast(llvm:: Instruction::FPExt, src,
>> llvm::Type::getDoubleTy( llvmContext),””)
>>
>>
>> I don`t know if I use CreateCast correctly and if this
>> approach is
>> correct at all.
>>
>> Thank you...
2011 Nov 14
1
[LLVMdev] Transferring value* in LLVM
...vich wrote:
>
>> Here is the error that I get:
>> Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) ==
>> Params[i]->getType()) && "Calling a function with a bad signature!"
>>
>
> That's not being generated by the CreateCast, so it looks like your
> description
> of the problem was quite misleading.
>
> Ciao, Duncan.
>
> Yakov
>>
>>
>> On Mon, Nov 14, 2011 at 9:05 PM, Eric Christopher <echristo at apple.com
>> <mailto:echristo at apple.com>> wrote:
>>
>>...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...lightly simpler.
>
> Ciao, Duncan.
>
>
> I want to transfer value (Value* src) of the type `FloatTyID` to
> `DoubleTyID`(I
> need all floats to be saved as 8 bytes).I have tried:
>
> builder.CreateCast(llvm:: Instruction::FPExt, src,
> llvm::Type::getDoubleTy( llvmContext),””)
>
> I don`t know if I use CreateCast correctly and if this approach is
> correct at all.
>
> Thank you.
>
> Yakov
>...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...slightly simpler.
>
> Ciao, Duncan.
>
>
> I want to transfer value (Value* src) of the type `FloatTyID` to
> `DoubleTyID`(I
> need all floats to be saved as 8 bytes).I have tried:
>
> builder.CreateCast(llvm:: Instruction::FPExt, src,
> llvm::Type::getDoubleTy( llvmContext),””)
>
>
> I don`t know if I use CreateCast correctly and if this approach is
> correct at all.
>
> Thank you.
>
> Yakov...
2014 Jan 20
2
[LLVMdev] Methods on addrspace pointers
...0x000000010385f8bf llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) + 687
> 7 clang-3.4 0x00000001030a4d1c llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateCast(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&) + 76
> 8 clang-3.4 0x0000000103bbeac3 clang::CodeGen::CodeGenFunction::EmitCall(clang::CodeGen::CGFunctionInfo const&, llvm::Value*, clang::CodeGen::ReturnValueSlot, clang::CodeGen::CallArgList con...
2011 Nov 14
0
[LLVMdev] transfer value from FloatTyID to DoubleTyID
Hello
I want to transfer value (Value* src) of the type FloatTyID to DoubleTyID(I
need all floats to be saved as 8 bytes)
I tried emit[..]->builder.CreateCast(llvm::Instruction::FPExt, src,
llvm::Type::getDoubleTy(llvmContext),””)
I don`t know which emit to use and if this approach is correct .
How can I do the above correctly?
Thank you.
Yakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pi...
2011 Apr 06
0
[LLVMdev] Incompatible types at call site
...gt; [#uses=1]
The way InstCombine manages this, is (from InstCombineCalls.cpp:1039)
if ((*AI)->getType() == ParamTy) {
Args.push_back(*AI);
} else {
Instruction::CastOps opcode = CastInst::getCastOpcode(*AI,
false, ParamTy, false);
Args.push_back(Builder->CreateCast(opcode, *AI, ParamTy, "tmp"));
}
When it asks for the castOpcode, it assumes both types are
unsigned(indicated by the false arguments).
Is it correct to assume this?
Thanks,
Arushi
On Tue, Apr 5, 2011 at 1:57 PM, Arushi Aggarwal <arushi987 at gmail.com> wrote:
>
>
>...
2011 Apr 05
2
[LLVMdev] Incompatible types at call site
On Tue, Apr 5, 2011 at 1:44 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Arushi,
>
>
> %tmp63 = call %struct.TypHeader* (...)* bitcast (%struct.TypHeader*
>> (%struct.TypHeader*, i64, i64)* @Cyclotomic to %struct.TypHeader*
>> (...)*)(%struct.TypHeader* %tmp62, i64 %tmp24, i32 1) nounwind, !dbg !907
>> ;
>> <%struct.TypHeader*> [#uses=1]