similar to: [LLVMdev] Adding a module in a pass

Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] Adding a module in a pass"

2011 Aug 09
0
[LLVMdev] Adding a module in a pass
On 8/9/11 6:49 AM, Bjorn Reese wrote: > I have an optimization pass (FunctionPass) where I need to add global > constructors. > > For cleaness sake I decided to add these in my own module. My module > is created in my FunctionPass constructor: This is not how I would do it. A FunctionPass has doInitialization() and doFinalization() methods that you can implement thatcan operate
2011 Aug 09
2
[LLVMdev] Adding a module in a pass
On 2011-08-09 16:48, John Criswell wrote: > On 8/9/11 6:49 AM, Bjorn Reese wrote: >> I have an optimization pass (FunctionPass) where I need to add global >> constructors. >> >> For cleaness sake I decided to add these in my own module. My module >> is created in my FunctionPass constructor: > > This is not how I would do it. A FunctionPass has
2006 Aug 08
2
Extending rails with plugins
I''ve been looking at bottling some functionality up into a plugin, but I''m having some problems including it. The structure I have is: /app/controllers/admin/base_controller.rb: class Admin::BaseController > ApplicationController #snip# end /vendor/plugins/myplugin/lib/my_module.rb: module MyModule def new_func "New Function" end end
2011 May 19
1
Module in Rails
Hi, I want to use module in Rails 3 I have module in /lib directory. file name: my_module.rb Code of Module: module MyModule def self.my_method loop do puts "I am started!!!" sleep 2 end end end Now, I want to use this module in my rb file resides in app_root/daemon directory named myserver.rb How can i use that? -- You received this message
2012 Sep 28
2
nested modules and autoloading
All- I''m using puppet 2.7.14. I''ve reviewed http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html but it doesn''t seem to cover what I''m attempting. Consider a module layout like this: $ tree mymodule mymodule |-- Modulefile |-- README |-- manifests | |-- init.pp | |-- special_type | | `-- prereqs.pp | `-- special_type.pp
2011 Aug 09
0
[LLVMdev] Adding a module in a pass
On 8/9/11 9:15 AM, Bjorn Reese wrote: > On 2011-08-09 16:48, John Criswell wrote: >> On 8/9/11 6:49 AM, Bjorn Reese wrote: >>> I have an optimization pass (FunctionPass) where I need to add global >>> constructors. >>> >>> For cleaness sake I decided to add these in my own module. My module >>> is created in my FunctionPass constructor:
2015 Feb 18
3
[LLVMdev] Calling into non-linked function via a pointer
This is my module's dump, which is different than yours. I wonder how I can get the external thing for my function. define double @sum(double, double) { entry: call void @FooBar() %tmp = fadd double %0, %1 ret double %tmp } ; ModuleID = 'My_Module' define double @sum(double, double) { entry: call void @FooBar() %tmp = fadd double %0, %1 ret double %tmp } declare void
2012 Jun 08
1
Announce: puppetlabs_spec_helper 0.1.0 Available
puppetlabs_spec_helper is a Rubygem to make writing and running module spec tests using rspec-puppet easier. It includes a set of common rake tasks and a spec_helper that correctly initializes puppet and rspec-puppet for testing. The code is available on github at http://github.com/puppetlabs/puppetlabs_spec_helper. Patches are welcome. To convert a module with existing spec tests to use the
2013 Jul 25
5
Heria, Facts, and Puppet
So something doesn''t look right for me when running puppet apply -e ''include ...'' for looking heria via facter fact. I have hiera configure as this, :backends: - yaml :hierarchy: - common - ''%{env_name}'' :yaml: :datadir: /var/lib/hiera/data and, a file envXX.yaml store in the datadir, and I can run *hiera xyz
2012 Nov 01
0
Lookup and scoping of hiera data from erb templates
Hey Folks. Reading through the docs and the mailing list only helped confusing me more, so maybe its better to just ask if my approach is correct. Imagine a basic project structure with a module and two classes inside: modules |- my_module |-frontend |-backend I''m using Hiera to manage dynamic values, so lets say I have: --- backend: foo: bar: "boo" baz: 42
2011 Feb 17
8
logoutput=>on_failure doesn't work as expected
I''m using puppet 0.25.1. I''ve got a simple resource: exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh": logoutput => on_failure, } and I don''t want it to log every time it''s successfully run: $ sudo tail -F /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: (//my_module/Exec[/bin/ls /u01/
2013 Sep 16
10
Unable to specify hierarchy for data-in-modules
Hello, I''m running Puppet agent stand-alone on Windows. I got data-in-modules working. However, no matter what I put into the module hiera.yaml, I can only override the defaults from common.yaml by osfamily (and not, e.g., by environment). In the setup below the following command outputs: >puppet apply --binder -e "notice lookup (''my_key'')"
2017 Jan 25
2
mcjit C interface problems
Hi, I'm attempting to use MCJIT with the C interface with llvm-3.9.0, and it doesn't seem to work. This code is derived from Paul Smith's example code: int main(int argc, char const* argv[]) { LLVMModuleRef mod = LLVMModuleCreateWithName("my_module"); LLVMTypeRef param_types[] = {LLVMInt32Type(), LLVMInt32Type()}; LLVMTypeRef ret_type =
2008 Feb 18
3
Calling a controller inside a module
I tryied everything: :controller => ''MyModule::Core::Controller'' require ''MyModule/core/controller'' include MyModule::Core But nothing works !!! Question is very simple: How to call a controller that belongs to a Module inside the router.rb file? This cannot be that difficult! Thanks! -Sergio -------------- next part -------------- An HTML attachment
2006 Jul 27
2
accessing a variable inside a plugin
Hello, I would like to load an Hash in my init.rb plugin file ... than I would like to use this hash in my module ... in my init.rb: @anHash = load From file... in mymodule: module Amodule def myFunction #@anHash .... end end How can I access to my hash in my plugin module function ? thanks for this dummy question ;-) Arnaud
2008 Oct 28
7
How to override one method of AssetTagHelper
I created a file ./lib/action_view/helpers/asset_tag_helper.rb and put in it only the method I want to override. like this module ActionView module Helpers #:nodoc: module AssetTagHelper def image_path(source) compute_public_path(source, ''images'') end end end end But as soon I try this all the others methods from the overriden module are not
2011 Mar 29
18
Rails 3.0.6.rc1
ZOMG HAPPY TUESDAY (UTC-7)!!! <3<3<3<3<3 I am happy to announce that the first release candidate for Rails 3.0.6 has been pushed to rubygems.org. ## Release Candidate: What does it mean? The release candidate is very similar to what we will actually release for version 3.0.6. The reason that we release an RC is so that the community can have a chance to postpone or veto commits
2006 Jul 24
9
Mongrel: auto-reload plugins?
When developing applications, Webrick will automatically reload controllers, models, etc. if the source changes. For obvious reasons, it doesn''t do this for plugins, which makes it a pain to develop said plugins. I was hoping Mongrel might have some facility to say "watch this directory too and reload any changes". Obviously, re-init''ing all plugins would be
2012 Mar 28
0
[LLVMdev] GSoC 2012 Proposal: Python bindings for LLVM
Hello all, Here is my GSoC 2012 proposal: Python bindings for LLVM. Any feedback are welcome! *Title: Python bindings for LLVM* *Abstract: * llvm-py provides Python bindings for LLVM. The latest llvm-py supports bindings with Python 2.x version for LLVM 2.x. This project is to improve llvm-py to make it compatible with both Python 2.x and Python 3 for LLVM 3. *Motivation* LLVM is used as a
2007 Mar 14
3
A place to put common partial templates and RJS files?
Greetings, I have a partial template file (acutally, it is an RJS file but the same principle is in question here) which I wish to "share" between multiple controllers. Does anyone know where in the directory tree I would put these files in order that I can access them from multiple controllers in the same app? I really would prefer not having to copy them all into all of the