Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

242 questions
0
votes
1 answer

Is there one-to-one mapping of MachineFunction CFG and IR Function CFG in LLVM?

You can have CFGs at both the LLVM IR Function level and CodeGen MachineFunction level. Is this a one-to-one mapping? I mean, are there same number of (Machine)BasicBlocks in those CFGs with similar control flows?I know the number of instructions…
soham
  • 1,508
  • 6
  • 30
  • 47
0
votes
1 answer

Using gdbus-codegen for dbus method call, server side works but response string on client side is always NULL

Using gdbus-codegen for dbus method call, server side works but response string on client side is always NULL. Specifically the buffer in the call new_cfg_gdbus_call_receive_new_config_sync(proxy, "new_cfg", buf, NULL, &error); is NULL, I am…
zarzar
  • 1
  • 4
0
votes
1 answer

ASM code generation look ahead and complexity

I have an AST with nodes like funcDef, funcCall, literals, and so on. I'm working on the code generator part of my compiler, generating assembly for x86_64. My question is what is the "proper" (industry standard) way of code generating down an…
0
votes
0 answers

Generate C++ code based on XML/JSON definition?

I'm writing some small service application (no UI) for an embedded system, in C++. Part of the concept includes independent blocks which define program logic and I want to make them configurable. In other words, I would like to split logic in small…
Arnie Schwarzvogel
  • 955
  • 1
  • 13
  • 25
0
votes
1 answer

Call a generated .dll file from codegen matlab in c program

I am using codegen in MATLAB R2016b to generate a .dll file as follows: codegen -config:dll ex_fun.m -args {0,0,0,0,0,0} I have tried to include the dll file as a reference using Visual Studio 2015 but nothing works fine and I couldn't use the .lib…
0
votes
0 answers

using matlab codegen but output .exe file can not start because .dll is missing from my computer

I have used matlab 2015a to generate .c and .dll files on windows7 as follows : codegen -config:dll example_fun.m -args {complex(0,0),0,0,0,0} and I want to use the .dll output file along with the generated main .c file using gcc on command prompt…
0
votes
1 answer

CoreData does not generate NSManagedObject for Swift 3

CoreData code generation doesn't generate NSManagedObject subsclass for swift3 for example: It creates NSDate properties instead of Date. Any idea how can I generate models for Swift3? Note:- I have found nothing in CoreData Code Generation settings…
Umair Aamir
  • 1,624
  • 16
  • 26
0
votes
1 answer

Debug output for instruction selection by pattern matching

Running llc --debug, the output for instruction selection pattern matching is quite unreadable on its own. Here's some example output: ISEL: Starting pattern match on root node: t7: i8,ch = load t0, t2, undef:i16 Initial…
Cactus
  • 27,075
  • 9
  • 69
  • 149
0
votes
0 answers

Subscripting into an mxArray is not supported

I want to generate mex function using Matlab coder: MEX function. In my code I used dir function to get the information of the images with png format like below: %#codegen coder.inline('never') coder.extrinsic('dir') imgePath ='D:/images/'; images =…
0
votes
1 answer

Allow non-ssl connections: javax.net.ssl.SSLHandshakeException: Handshake failed

Using java client generated codegen, I am receiving a handshake failed when trying to connect to my localhost which isn't SSL. What do I specify in the Android code to allow? The codegen is also using (okhttp:2.7.5): 04-13 09:21:28.874…
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
0
votes
1 answer

Ignore service implementation file while executing swagger code gen

I am trying to implement my rest services using jersy and documentation using swagger. Once model is generated using code gen and added logic in my service implementation class. Now if I want to regenerate model, is there any parameter to pass to…
Ajit Kalyan
  • 49
  • 1
  • 8
0
votes
1 answer

codegen error: The left-hand side has been constrained to be non-complex, but the right-hand side is complex

I am new to matlab and am trying to compile legacy matlab code into C. I come across the following error when doing so: ??? The left-hand side has been constrained to be non-complex, but the right-hand side is complex. To correct this problem,…
noobuntu
  • 903
  • 1
  • 18
  • 42
0
votes
1 answer

pub build throws errors in case of angular2 dart codegen

For a while I was under the impression that the Angular2 Dart codegen was the way forward with the development. Unfortunately it seems that as of late I can't use codegen anymore. Here is my pubspec.yaml which does not work and produces errors. By…
Fabian
  • 5,476
  • 4
  • 35
  • 46
0
votes
1 answer

Slick implicit parameter 'tables' with generated tables

The simple version What's the preferred way to import and use generated Slick tables? The detailed version and what I've tried I used Slick 3.1.1 codegen to generate a Tables.scala from a MySQL (MariaDB) schema. Tables.scala begins with this: //…
0
votes
1 answer

Xcode 8 Codegen feature generates nothing

I am trying to setup codegen feature in one of my existing project and I have no success with any code generation. Here goes my setup. I have a Foo entity with a bar attribute. Codegen setup for Class Definition: Language for Code Generation setup…
Viktor Kucera
  • 6,177
  • 4
  • 32
  • 43