Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 19 16:53
    tannergooding commented #112
  • Aug 19 16:53

    tannergooding on master

    implement missing apis (#112) … (compare)

  • Aug 19 16:53
    tannergooding closed #112
  • Aug 19 08:12
    AviAvni synchronize #112
  • Aug 15 17:57
    tannergooding commented #114
  • Aug 15 17:57

    tannergooding on master

    Add LLVMPassManagerBuilderRef E… (compare)

  • Aug 15 17:57
    tannergooding closed #114
  • Aug 15 17:40
    talyian synchronize #114
  • Aug 15 17:05
    tannergooding commented #113
  • Aug 15 16:52
    tannergooding commented #91
  • Aug 15 16:50
    tannergooding commented #114
  • Aug 15 16:42
    tannergooding commented #114
  • Aug 15 07:49
    AviAvni synchronize #112
  • Aug 14 20:56
    EgorBo commented #114
  • Aug 14 20:54
    msftclas commented #114
  • Aug 14 20:53
    msftclas commented #114
  • Aug 14 20:52
    talyian opened #114
  • Aug 14 19:29
    talyian edited #113
  • Aug 14 19:28
    talyian opened #113
  • Aug 13 13:45
    AviAvni opened #112
yowl
@yowl
ah, I see there's and LLVM.AddCase
yowl
@yowl
LLVM 8 has the wasm backend as non experimental, any chance of a build for it?
yowl
@yowl
I make that sound as though its a 5 minute job which I'm sure its not. I've added my upvote to Microsoft/LLVMSharp#84
yowl
@yowl

I'm trying to build libLLVM against LLVM 8.0.0 and hitting a mismatch in the dynamic/static link settings

LLVMAArch64AsmParser.lib(AArch64AsmParser.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in LLVMSharp.obj

which is right way to go, dynamic or static?

yowl
@yowl
I've build libllvm.dll and llvmsharp nuget package against llvm 8.0.0, but how do I get a package for libllvm.dll?
λtlas
@cloudrex
Hi guys, anyone online?
I have a quick question, how do I obtain the IR code of a module, and put it in a string?
should I use LLVM.PrintModuleToString()?
I've tried that, but it returns IntPr ?!
@onionhammer You're literally the only one online, help me out brother
λtlas
@cloudrex
I got it
It was Marshal.PtrToStringAnsi!
λtlas
@cloudrex
I think it would be GREAT if the LlvmSharp would have descriptions in the methods
like documentation
λtlas
@cloudrex
You guys alive?
yowl
@yowl
@cloudrex The participation here is a bit sporadic. You might be better off creating an issue in github.
λtlas
@cloudrex
Thanks for the suggestion sir!
λtlas
@cloudrex
is it okay to create issues for questions/LLVM help?
yowl
@yowl
@cloudrex I would, but if its LLVM rather than LLVMSharp you might be better off in their IRC channel
λtlas
@cloudrex
It's mostly LLVMSharp since the API is somewhat special for C#
I'm just having trouble on the anomalies, for example size_t in C#
And also I don't have access to the API (C# wrapper), maybe it hasn't been released yet in the package.
yowl
@yowl
Not sure I follow, the nuget package is not working for you?
λtlas
@cloudrex
image.png
Can't access API wrapper for C#
I'm guessing that hasn't been released in any package yet
yowl
@yowl
I see, I'm not using that so perhaps not
λtlas
@cloudrex
you just use the normal, generated API right
yowl
@yowl
yes
λtlas
@cloudrex
ok good I use that too, was fearing a rewrite using the API
I have a quick question on GetModuleIdentifier, are you able to provide support?
yowl
@yowl
sorry, dont use that method
λtlas
@cloudrex
is it bugged?
yowl
@yowl
no idea, what makes you think that?
λtlas
@cloudrex
what do you mean by not to use that method?
yowl
@yowl
I mean I don't use that in my code, sorry I see that the response wasn't clear
λtlas
@cloudrex
LLVMSharp.LLVM.GetModuleIdentifier(module.Target, out _);
that crashes my program without any warnings or errors
for some reason
which is interesting because I'm doing everything right
I might want to create an issue for a bug anyways
out _ is just to ignore the size_t output
yowl
@yowl
hmm, an out parameter, I wonder if the marshalling is correct for that.
λtlas
@cloudrex
Yea I'm suspecting that's the issue too, with C# 7.0 you can ignore out params
but since I'm ignoring it, it shouldn't be an issue at all
must be something wrong internally
Ivan
@advancedwebdeveloper
Hi
any motivated people here, targeting MIPS support for the LLVM?
λtlas
@cloudrex
Any ideas why the LLVM.BuildStructGEP method accepts an LLVMValueRef instead of LLVMTypeRef (target struct) as the 2nd parameter?
yowl
@yowl
How do add conditions to LLLVM.BuildPhi ?
yowl
@yowl